I've just set up a fail-over DNS to switch the site to a second host if the first is down. This is great for showing an old / archived version of the site, but I suspect maintenance is going to be a real pain.

I moved the files over with rsync in the first place. Is this the kinda thing that could be run as a cron job, automatically moving over newer files?

link|improve this question
feedback

migrated from stackoverflow.com Apr 7 '10 at 3:19

This question came from our site for professional and enthusiast programmers.

1 Answer

Rsync was designed exactly for this sort of thing. It will work great as a cron job.

To do a daily sync on the cron job:

$ crontab -e
Add line:
0 0 * * * [rsync command line]
link|improve this answer
Could you help me out with the exact line for the chron job? I'm not too familiar with this sort of thing... – Matrym Apr 5 '10 at 21:53
Google "man crontab" for full details. – John Gardeniers Apr 7 '10 at 3:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.