--exclude and --delete
Wayne Davison
wayned at samba.org
Wed Feb 25 07:30:43 GMT 2004
On Wed, Feb 25, 2004 at 02:32:47PM +1100, 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.
I can't duplicate this. If I make /home/user/profile on the receiver a
file (instead of a directory) it will vanish (because the trailing slash
on the exclude tells rsync only to exclude a directory by that name),
but if it's a directory, it remains unaffected.
..wayne..
More information about the rsync
mailing list