double / on --exclude flag cuse the path not to be excluded

Wayne Davison wayned at samba.org
Wed Dec 28 17:46:55 GMT 2005


On Wed, Dec 28, 2005 at 03:09:14PM +0200, Kfir Cohen wrote:
> rsync -aHvS --exclude /root//Desktop/ /root /tmp/kuku
> 
> the Desktop Dir will not be excluded.

That's correct -- rsync will never construct a pathname that contains a
double slash, so the path will never match a pattern that contains a
double slash.

..wayne..


More information about the rsync mailing list