Help with --delete option

Wayne Davison wayned at samba.org
Sat Dec 17 22:02:44 GMT 2005


On Sat, Dec 17, 2005 at 03:55:27PM -0600, scott wrote:
> rsync --archive -e '/usr/bin/ssh -p 22' --verbose
> \ --include-from=/root/my-backupfilter --recursive
> \ --delete --existing / user at x.x.x.x:/home/backupdir
> 
> which is close, but still updates files

You need to also add --ignore-existing.  Combined with --existing
(which should really be named --ignore-non-existing), no files will
be transferred at all, so only deletions will happen.

..wayne..


More information about the rsync mailing list