--exclude and --delete

Paul Slootman paul at debian.org
Wed Feb 25 09:56:34 GMT 2004


On Wed 25 Feb 2004, andrew wrote:
> 
> rsync -av --exclude "/user/profile/" --delete /home/user user at receiver:/home
> 
> This works as I expect, sender:/home/user/profile/ is not copied, except 
> that receiver:/home/user/profile/ is deleted.

Hmm, wouldn't the exclude need to be "/profile", as the exclude patterns
starting with / are anchored at the top of the source tree, ie.
/home/user ?  Or am I confused about the exclude patterns again :)


Paul Slootman


More information about the rsync mailing list