cfg.saved.php Question
-
- Experience Level 2
- Posts: 91
- Joined: Thu Mar 29, 2012 12:04 pm
cfg.saved.php Question
Other than FTP, is it possible (through admin?) to save a copy of the latest version of cfg.saved.php?
I've looked at the "manage backups" function, but don't really get it. It'll have several like this:
10:00:01
10:00:02
10:00:03
...etc...
11:15:50
11:15:51
11:15:52
...and so on, but how are you supposed to know what's what?
After finishing a lot of editing it would be really awesome to be able to save a copy locally to disk w/o having to open an FTP client.
I've looked at the "manage backups" function, but don't really get it. It'll have several like this:
10:00:01
10:00:02
10:00:03
...etc...
11:15:50
11:15:51
11:15:52
...and so on, but how are you supposed to know what's what?
After finishing a lot of editing it would be really awesome to be able to save a copy locally to disk w/o having to open an FTP client.
Re: cfg.saved.php Question
Every time you click on the "save" button OR change tabs, a backup is generated. The numbers after the name are the time and date. The program used to save the last 25 backups, but it's been changed lately to just 10 backups.
The most recent copy is always the cfg.saved.php file itself. You can always save a copy of this to your computer for archival purposes. In fact, I always recommend it, in case of any unforeseen problems that might corrupt, erase or otherwise damage the file. Such occurrences are a lot less common than they used to be, but it's always better to be safe rather than sorry.
If you don't want to FTP it, copy the file to somewhere else on your site. Create a 'backups' folder if you want.
The most recent copy is always the cfg.saved.php file itself. You can always save a copy of this to your computer for archival purposes. In fact, I always recommend it, in case of any unforeseen problems that might corrupt, erase or otherwise damage the file. Such occurrences are a lot less common than they used to be, but it's always better to be safe rather than sorry.
If you don't want to FTP it, copy the file to somewhere else on your site. Create a 'backups' folder if you want.
-
- Experience Level 2
- Posts: 91
- Joined: Thu Mar 29, 2012 12:04 pm
Re: cfg.saved.php Question
Yes, I agree on archiving, and do so religiously, but by FTP. I'm not sure if I'm reading your reply correctly,... are you suggesting that I can save locally via browser?mcarp555 wrote:You can always save a copy of this to your computer for archival purposes. In fact, I always recommend it, in case of any unforeseen problems that might corrupt, erase or otherwise damage the file. Such occurrences are a lot less common than they used to be, but it's always better to be safe rather than sorry.
If you don't want to FTP it, copy the file to somewhere else on your site. Create a 'backups' folder if you want.
I don't want to save server-side as I don't trust the webhost. I want to be able to have a complete site locally for when I move. I even have redundant backups locally. Yes, I'm still working the new webhost angle and will have to make a change very soon.
Re: cfg.saved.php Question
No, the only current options are server-side or FTP.
I don't know if it's possible to institute a download option for the saved file; I'll speak to Justin about it.
I don't know if it's possible to institute a download option for the saved file; I'll speak to Justin about it.
Re: cfg.saved.php Question
From looking at this and thought it was a good idea.
So, I found some PHP code to send an email with an attachment and modified it to only send the cfg.saved.php file.
Below is a link to the code.
http://dl.dropbox.com/u/9935575/Code/emailcfg.php
All you have to do is enter your email address on line 7 and upload the file to you server in the same folder as shop.php.
Since it is hard coded to only email the one file it should be quite secure, but as with all these things use at your own risk.
I would also recommend changing the file name on the server to something a bit more random, so that the file is more difficult to find.
As an suggestion for AOM: since you have to enter an email address for reporting in the full AOM. It might be possible to implement a version of this using that email address for sending the backup.
In that way the backup is controlled with AOM rather than being a separate script.
Enjoy,
Albert.
So, I found some PHP code to send an email with an attachment and modified it to only send the cfg.saved.php file.
Below is a link to the code.
http://dl.dropbox.com/u/9935575/Code/emailcfg.php
All you have to do is enter your email address on line 7 and upload the file to you server in the same folder as shop.php.
Since it is hard coded to only email the one file it should be quite secure, but as with all these things use at your own risk.
I would also recommend changing the file name on the server to something a bit more random, so that the file is more difficult to find.
As an suggestion for AOM: since you have to enter an email address for reporting in the full AOM. It might be possible to implement a version of this using that email address for sending the backup.
In that way the backup is controlled with AOM rather than being a separate script.
Enjoy,
Albert.
-
- Experience Level 2
- Posts: 91
- Joined: Thu Mar 29, 2012 12:04 pm
Re: cfg.saved.php Question
Albert -
What triggers the send? Is it a matter of just navigating to emailcfg.php?
Thanks -
What triggers the send? Is it a matter of just navigating to emailcfg.php?
Thanks -
-
- Experience Level 2
- Posts: 91
- Joined: Thu Mar 29, 2012 12:04 pm
Re: cfg.saved.php Question
I did find FireFTP - http://fireftp.mozdev.org/features.html - a Firefox addon that has simplified the process somewhat. Still working on an easier solution...
Re: cfg.saved.php Question
Purely navigating to emailcfg.php sends the email.developments wrote:Albert -
What triggers the send? Is it a matter of just navigating to emailcfg.php?
Thanks -
That is why it is all hard coded so that no one can reroute the email or access the cfg.saved.php
I also recommended changing the file name to something a bit more strange so that it would be truly unique and not discoverable.
To back up a number of sites with one click you could build a web page with iframes that call the script on the different sites. You can then call one page and it emails you all your cfg.saved.php files in one go.
If you have hosting where you can schedule tasks (cron) then you could set up a cron job to call this page once a week to get a new set of cfg.saved.php files automatically.
It's a bit of a kludge but in the end you would have automatic backups and as you add new sites you would just upload emailcfg.php to the new site and modify the html page to call a new iframe.
Who is online
Users browsing this forum: No registered users and 2 guests