Web Hosting Talk







View Full Version : backing up


cwshosting
05-19-2002, 04:34 AM
Hi,

I have got a script that I use for some backups that tar up files on one server and then automatically FTP to another server using a Cron Job.

This is really great script however, untar on the other side.

Anyone have a script that can do this?

Thanks

ZeonHost
05-19-2002, 12:31 PM
Why would you want to untar the backups? You want to restore them to the backup server?

cwshosting
05-19-2002, 12:50 PM
Basically I want to do the above to act as a mirror. So that the server that receives the files is a mirror for the other server.

Then I fiddle the DNS so that it points to one then the other. For load balancing and uptime.

Thanks

allera
05-19-2002, 01:18 PM
I highly suggest rsync. You don't have to tar and untar everything and transfer it all over -- you just make one full backup to the other machine using rsync and then rsync will automatically backup any new/changed files and deleted old ones on the backup machine when run in the future (with the proper options).

More info at http://rsync.samba.org.

Fantastic program, highly recommended for what you're trying to do.