rsync to retry if copy failed - possible?
mangoo at mch.one.pl
Sat Dec 11 21:02:04 GMT 2004
Eberhard Moenkeberg wrote:
> On Sat, 11 Dec 2004, Tomasz Chmielewski wrote:
>>I want to be 100% sure that rsync copies something from one location to
>>However, I did not see an option which would make rsync retry an operation if
>>it failed for whatever reason (network was down when rsync started, or network
>>went down during rsync was copying something, connection timed out etc.).
>>For example, wget has an option like --tries=number Set number of retries to
>>number. Specify 0 or inf for infinite retrying.
>>Is there something similar in rsync? If not, are there any ways to achieve a
> rsync has a very differentiated set of return codes.
So is it really the only way?
Restarting rsync if the exit code was different than 0 (success) means
it has to recalculate everything again.
With archives when there are a lot of files this means waste of time,
Are there any other options?
More information about the rsync