PDA

View Full Version : Website Backup


LeeH
10-16-2001, 11:40 AM
Greetings,

We are recovering from a small disaster and are trying to put in place a routine that will prevent this from happening again.

I am looking for a backup script that will allow you to backup your website and give you the option to FTP that backup to another server.

I would like this to run on a crontab nightly and notify me via email when completed.

Does anyone know of a script like this?

Would this also backup the MySQL data? We currently backup the db nightly and have 7 days of backups. The earliest is deleted after the newest is made.

How long would backing up a website take and would the site be down during backup?

Thanks in advance,

Lee

manish
10-16-2001, 12:35 PM
I'm not sure if the .netrc feature is supported. But this is what I have seen other people do:

Create a file called .netrc in your home directory with the following information:


machine ftp.host.com
login: <login>
password: <pass>
macdef init
cd [put path here]
tar zcvf backup.tar.gz *
put [path]/backup.tar.gz backup.tar.gz
quit


Then in your cron file just call

ftp ftp.host.com


Manish

Rich
10-16-2001, 07:26 PM
Since you already have your databases backed up daily, this would only leave the html pages and scripts. I'm not sure why you would need to have backups of these from the server since they already exist on the PC from which you originally uploaded them?

Rich