Hi,

I'm trying to copy some directories with rsync and would like to
delete files from the destination if they no longer exist in the
source.

I'm using the following command:

rsync -v --archive --hard-links --delete --force
--filter=':/.rsync-filter' /opt/ /mnt/backup/opt/

/opt does not contain any files
the destination contains one file

stewart@attobeast:/etc$ ls /mnt/backup/opt/
test-file

after running the rsync command I would expect test-file to have been
deleted but it isn't. I'm sure I'm missing something obvious in the
man page that explains this behaviour but I can't figure it out. Can
anyone enlighten me?

Thanks

Stewart
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to