If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Is there a script that I can run on a weekly basis that will backup all my sites to an FTP that I have running? I have a FTP on a Static address and want to setup a backup.
I haven't done this, but it should be something like this:
Use the tar/gzip command to create a a single file of you www folder. The use Curl on the command line to ftp the file to your own server.
Once you have created this script, place this in the Cron table either through the command line or using Cpanel. I am not on a Linux box right now, so can't give you the code for this.
Is there a script that I can run on a weekly basis that will backup all my sites to an FTP that I have running? I have a FTP on a Static address and want to setup a backup.
Thanks,
D. Walley
Be careful using tar/gzip, especially if its alot of stuff your backing up.
Simply put it can hog resources and we all know what happens then
"How can someone be so distracted yet so focused?"
- C
I personally don't see the point of backing up the whole public_html directory. You should maintain your own backup of files and then only backup data that changes regularly. e.g. databases and maybe user uploaded images.
Does anyone know of a script that only backs up the files that have changed since the last backup?
It would have to look at the last modified date on a file I suppose, and if it is newer than the date of the last backup then it would add it to the backup.
Comment