rsync --partial produces corrupt data on ctrl-c

Wayne Davison wayned at users.sourceforge.net
Tue Aug 27 23:49:00 EST 2002


On Wed, 28 Aug 2002, Ralf Schreiber wrote:
> The partially transfered data (with a dot on first position of the filename)
> will be renamed after a ctrl-c occurs (on both
> OS) or a window-close (cygwin) to the filename of a fully transfered file
> (without the dot), which aren't complete !

Yes, that is the definition of what partial mode does with a partially
transferred file.  The manual recommends the use of the --compare-dest
option to work around this, but that doesn't appear to do the manual
says at all, so it looks like there is either a bug in the handling of
--compare-dest when --partial is enabled, or a bug in the manual.

One thing that the manual doesn't say is what file should be preferred
if there is a matching file in both the compare-dest dir and the real-
dest dir.  This becomes important if we want to use --compare-dest as a
holding zone for partial files since we would need to have the code
prefer the compare-dest file over the real-dest file if we make it put
partially transferred files into the compare-dest dir.  The current code
prefers the real-dest file over the compare-dest file and puts partially
transferred files into the real-dest dir.

Opinions?

..wayne..




More information about the rsync mailing list