Weblog entry #339 for simonw
#339
rsync default timeout
Posted by simonw on Tue 30 Jun 2009 at 15:27
The default timeout in rsync is 0, meaning never timeout.
For years this has never caused me any issues, however recently found box with 8 days worth of backup scripts all running at once. Seems the receiving server was in a mess, logging kernel messages about CPUs being stuck, as a result the rsync was never finishing, and never timing out.
So note for self, always set a timeout for rsync (and always remember the delete option as well)!
For years this has never caused me any issues, however recently found box with 8 days worth of backup scripts all running at once. Seems the receiving server was in a mess, logging kernel messages about CPUs being stuck, as a result the rsync was never finishing, and never timing out.
So note for self, always set a timeout for rsync (and always remember the delete option as well)!
Comments on this Entry
Posted by Anonymous (97.65.xx.xx) on Tue 30 Jun 2009 at 17:01
Lock files are a good idea too, make checking the presence of an existing lock file the first thing the script does and get it to error out with a message like "old rsync still running". That would have alerted you to a problem after just one day.
[ Parent | Reply to this comment ]