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

Kfir Cohen kfirc at
Wed Dec 28 13:09:14 GMT 2005

i found out that if you are using the following command:
rsync -aHvS --exclude /root//Desktop/ /root /tmp/kuku

the Desktop Dir will not be excluded.

but if i use:
rsync -aHvS --exclude /root/Desktop/ /root /tmp/kuku1
the Desktop Dir will be excluded.

the rsync version that i find it is:
rsync  version 2.6.6  protocol version 29


More information about the rsync mailing list