How can we avoid partially transfered file
wayned at samba.org
Sat Dec 4 17:33:03 GMT 2004
On Sat, Dec 04, 2004 at 09:35:38AM +0530, kbala at midascomm.com wrote:
> We want to avoid the partially transferred file to be in the target
Then avoid the --partial option (and also -P, which implies it). You
should also upgrade to 2.6.3 on both sides of the transfer so that a
misconstructed file will not be saved on the destination side (older
versions kept the erroneous file on the destination and tried to resend
it at the end of the transfer).
Also note that you can use the --partial-dir option (new to 2.6.3) to
control where partial files are put, so an alternative to avoiding the
--partial option would be to specify --partial-dir=.rsync-part (for
example) and rsync would auto-manage the subdirectory ".rsync-part" in
any destination directory where a partially transferred file occurs.
More information about the rsync