I use files-from and want to have rsync connect to my backup server and ONLY delete the files that are no longer on the source server. If the file which is in my files-from filter list has changed, i do not wan tit updated. Bu if the file on the source server has been deleted, I want rsync to (only) delete the file on the backup server and quit. Is this possible? I tried: rsync --archive -e ''/usr/bin/ssh -p 22'' --verbose \ --include-from=/root/my-backupfilter --recursive \ --delete --existing / user@x.x.x.x:/home/backupdir which is close, but still updates files if they are in teh list but not ont he other backup Thanks for any help. Scott -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
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@x.x.x.x:/home/backupdir > > which is close, but still updates filesYou 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..
> 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@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.Thanks wayne. I had tried that but my original test didn''t work. I just did it again and it is working as desired, not sure what I did wrong before, oh well. Thanks again very much. Best, Scott