--exclude and --delete

andrew lister at pyroboy.com.au
Wed Feb 25 23:36:39 GMT 2004

John Van Essen wrote:

>>>>rsync -av --exclude "/user/profile/" --delete /home/user user at receiver:/home

> Since there is no trailing slash on '/home/user', the sender root is
> at '/home/', so the exclude pattern is correct in that case.
> But the receiver path is '/home', so the root for building the
> exclude path is '/', and hence the exclude does not match on the
> receiver since it's not looking under /home.
> I'd suggest appending a '/' to 'user at receiver:/home'.

Makes sense - I'll give that a shot as well.


More information about the rsync mailing list