Re: why rsync wants to delete destination files
Thanks for your replay Sam.
On Fri, 06 Aug 2010 22:47:57 -0500, Sam Leon wrote:
> --delete-before will delete everything in the destination directory that
> is not in the source directory.
As you sure about this?
>From man page:
--delete-before receiver deletes before transfer (default)
I.e., "--delete-before" is the default action. It only affect the files
to be copied over. Nothing else.
--delete-before
Request that the file-deletions on the receiving side be
done before the transfer starts. See --delete (which is
implied) for more details on file-deletion.
Deleting before the transfer is helpful if the
filesystem is tight for space and removing extraneous
files would help to make the transfer possible.
However, it does introduce a delay before the start of
the transfer, and this delay might cause the transfer to
timeout (if --timeout was specified). It also forces
rsync to use the old, non-incremental recursion
algorithm that requires rsync to scan all the files in
the transfer into memory at once (see --recursive).
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Reply to: