Web Hosting Talk







View Full Version : Transferring files through Cron Jobs


migo225
05-06-2002, 08:22 AM
All...

Is it possible to write a Script that transfer all of a server contents (All files for all hosted domains + MySQL Dbs) to another server in another Data Center 2 times per week (say) ?

Any hint, link , ready made solution are all appreciated

Thanks in advance

cperciva
05-06-2002, 08:49 AM
Answer: Yes.

Hint: Rsync.

Link: http://samba.anu.edu.au/rsync/

You'll also probably want to look at SSH and authentication keys.

migo225
05-06-2002, 11:51 AM
Thanks cperciva

Any other Suggestions ?

jstout
05-06-2002, 01:09 PM
Rsync's your best bet.

If you have plenty of space on the drive you could tar the files or dd the drive and transfer using scp/ftp/sftp/whatever. This is more trouble than it's worth though. Your better off taking the time to learn rsync and using that.