Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Apr 7 '10 at 3:19

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

1 Answer 1

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

 
discard

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.