Matthew Monaco wrote:
What is the difference between exclude and hide in the filter rules?

Normally, 'hide' is interpreted only by the sender and the files will never show up in the file list sent to the receiver. 'Exclude' is both 'hide' (sender) and 'protect' (receiver) - so files that will not show up in the file list, will not be deleted by the receiver (if you use any of the available delete options). With separate 'P' and 'H', as well as 'S' and 'R' (respectively - sender and receiver's 'include') you can create quite clever rules.

When 'hide' is used in rsyncd.conf filters with rsync in daemon mode, it may work a bit differently. When rsync daemon operates as a sender 'hide' will function as usual, but when it operates as a receiver - it will also be interpreted (normally receiver wouldn't) and will not allow any updates to files matching the wildcard used. The same goes for 'protect' and 'exclude'. So in short - functionality is extended from 'don't delete' to 'don't update or delete'.



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