Need help with exclude

Wayne Davison wayned at samba.org
Wed Nov 26 04:16:36 EST 2003


On Tue, Nov 25, 2003 at 03:53:10AM -0600, daniel wrote:
> Thank you for clarifying the issue with regard to the fact that the
> exclude pattern is relative to the destination path.

No, it's relative to the root of the transfer -- i.e. the names that the
two sides have in common.

> The fact that:
> rsync -av --exclude=/foo/test/dir1/ /foo/test/ serv2:/foo/   
> does not work seems wrong.

It is not wrong as long as you want to exclude /foo/test/foo/test/dir1
from the transfer (since that's what you specified).

..wayne..



More information about the rsync mailing list