[Bug 11253] --exclude=dir doesn't work with --files-from=

samba-bugs at samba.org samba-bugs at samba.org
Mon May 4 11:32:42 MDT 2015


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

Wayne Davison <wayned at samba.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Wayne Davison <wayned at samba.org> ---
Excludes don't affect args, just items that are found in recursion. A
files-from list is the same as specifying all the names as args on the
command-line, and thus are not affected.  Specifying an exclude of just the dir
name matches only that dir itself, so when recursing inside the dir, that rule
won't match anything.  If you don't want a particular arg to be included, you
can filter it out of the files-from file.  Your exclude of dir/** (or dir/***)
is also a good solve, as it tells rsync to affect the contents of a particular
path.

One filter solution:

egrep -v '/dir(/|$)' files_from | rsync -aiv --files-from=- / /to/

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the rsync mailing list