View Single Post

   
  #2 (permalink)  
Old 03-10-2008, 04:54 PM
Damjan
 
Posts: n/a
Default Re: How fault-tolerant is rsync? (eg. if network goes down)

> I couldn't find this in the rsync documentation. If, during an
> rsync, my network goes down for a few seconds or minutes, can
> rsync recover? Does it do checksums on all files it gets?
> Does it even notice if there is a network error?
>
> I see in the documentation that checksums happen, but I'm not sure
> if they happen at the right times to notice a network error.


rsync uses TCP, so if the network goes "down" it will detect that.
TCP is a reliable protocol, it has checksums for it's packets so in the
general case no corruption will appear.

Anyway, if you are paranoid you can enable the -c option of rsync in which
case it calculates a checksum of the eligible files, and only transfer
those that its checksums don't match.

In the general case, rsync only compares files based on file-size and
modification time.

--
damjan
Reply With Quote