Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Apr 7 '10 at 3:19

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

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]
share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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