Eberhard Moenkeberg wrote:
Hi,

On Sat, 11 Dec 2004, Tomasz Chmielewski wrote:


I want to be 100% sure that rsync copies something from one location to
another.

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
similar behaviour?


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, CPU etc.


Are there any other options?


Tomek -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to