Damaged source medium during rsync

Matt McCutchen hashproduct+rsync at gmail.com
Wed Aug 30 20:24:18 GMT 2006


On 8/30/06, tony at servacorp.com <tony at servacorp.com> wrote:
> flames invited if I've got this wrong.
> UNLESS --inplace is specified, the error will be detected and the update aborted before the target file is touched.

You're right.  The sender will behave as if the damaged regions of the
file contain zeros, but then it will cause the post-transfer checksum
to fail.  That will make the receiver either discard the temporary
file or put it in the partial dir for later use as a basis.  But when
--inplace is in use, the original file has already been overwritten.

Matt


More information about the rsync mailing list