Hello All, I have a doubt regarding the fault tolerance of the rsync tool. What happens if the network goes down for some time and comes back after few seconds? Will rsync retry ? If yes, how many times/ how much time it will keep retrying ? How to ensure the completion of the rsync operation when there are network break ups? thanks for any help. -- Regards, Ravi.Thati -------------- next part -------------- HTML attachment scrubbed and removed
If Rsync can't pass on the changes, it'll report an error on each file it can't change and eventually stop. It's up to you to detect this and rerun your rsync script. P.S. Tip: You'll get more people reading your postings if you give meaningful subject titles. -- Stuart Halliday -----Original Message----- From: "Ravi Thati" <gotothati@gmail.com> To: rsync@lists.samba.org Date: Mon, 8 Sep 2008 13:49:07 +0530 Subject: New bie Q> Hello All, > > I have a doubt regarding the fault tolerance of the rsync tool. > > What happens if the network goes down for some time and comes back > after > few seconds? > Will rsync retry ? If yes, how many times/ how much time it will keep > retrying ? > > How to ensure the completion of the rsync operation when there are > network > break ups? > > thanks for any help. > -- > Regards, > Ravi.Thati >This email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 http://www.ecs-tech.com/
On Mon, 2008-09-08 at 13:49 +0530, Ravi Thati wrote:> I have a doubt regarding the fault tolerance of the rsync tool. > > What happens if the network goes down for some time and comes back > after few seconds? > Will rsync retry ? If yes, how many times/ how much time it will keep > retrying ?Rsync does not have any fault-tolerance or retrying mechanism. If the operating system breaks the connection, rsync will abort with exit code 12, while if the OS retains the connection, rsync will just proceed when the network starts working again.> How to ensure the completion of the rsync operation when there are > network break ups?Write a script that runs rsync repeatedly until it exits with a code other than 12 (which indicates a broken connection). Matt