--delete option does not always work

Wayne Davison wayned at samba.org
Wed Apr 27 18:02:49 GMT 2005


On Wed, Apr 27, 2005 at 12:57:51PM -0400, Lenny wrote:
> rsync -a --delete --numeric-ids --relative --delete-excluded -v src/ dest/

The problem is caused by the source dir being "src/" instead of "src"
when --relative is specified (this causes a problem internally because
the starting directory is transferred as "src/.", so the receiver's
heuristic to separate implied dirs in the file list from real dirs is
not properly marking those subdirs as a part of the transferred
hierarchy).

You can work around the problem for now by dropping the trailing slash
(while I work up a fix).  Thanks for the report,

..wayne..


More information about the rsync mailing list