DO NOT REPLY [Bug 7456] exclude directory based on presence of a file

samba-bugs at samba.org samba-bugs at samba.org
Sat May 29 08:30:30 MDT 2010


https://bugzilla.samba.org/show_bug.cgi?id=7456





------- Comment #1 from wayned at samba.org  2010-05-29 09:30 CST -------
If you put "- *" into that file and use the filter option "--filter=':
.exclude", then rsync will exclude all the files/dirs from within that
directory (just not the directory itself).  If you want to exclude the
directories themselves, you can put a rule into the parent dir.  For instance,
create the file .rsync-filter and put "- /subdir" into it (that slash anchors
the name in the current dir).  Then, run rsync with the -FF option and it will
use the filter files and also exclude them from the transfer.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list