>>> rsync -azvi --exclude-from=excludes.txt --delete --delete-excluded /
>>> user@hostname:
>
>>> excludes.txt:
>>> + /
>>> + /etc
>>> + /etc/**
>>> + /home
>>> + /home/*/
>>> + /home/*/.maildir/
>>> + /home/*/.maildir/**
>>> - - *
>
>>So the includes are in excludes.txt prefixed with "+ " and the excludes
>>are prefixed with "- - "?
>
> Since excludes.txt is an --exclude-from file, the - is optional.
> Similarly, if you are using an --include-from file, the + is optional.
> These are both specializations of the generic --filter='merge filters.txt'
> filter option.  See the rsync man page for the gory details.

That's a great feature and I think it should be referenced in some way
under --include-from and --exclude-from in man rsync.

- Grant
-- 
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