--exclude-from and a directory name that contains a hyphen

Wayne Davison wayned at samba.org
Sun May 2 18:45:56 MDT 2010

On Thu, Apr 22, 2010 at 9:04 AM, Wolter, John D. (GRC-RTE0) <
john.d.wolter at nasa.gov> wrote:

>  This doesn't work (it only syncs the directory file named gale):
> + /gale
> + /gale/solver-alpha
> + /gale/solver-alpha/**
> - *

That should work fine, and is unlikely to be an rsync bug.  I'd imagine
there is some slight difference between the actual dir name and the include
line.  e.g., make sure there is not a trailing space on the line that
includes the solver-alpha directory.  Make sure that the dirname exactly
matches that in both case and characters.  Make sure that there aren't any
earlier exclude rules superseding those rules (is that the only exclude

If you can't see an issue, try adding a second -v option to the transfer and
reading the "hiding" message that rsync outputs, such as:

[sender] hiding file gale/Solver-alpha because of pattern *

If there is the possibility of other "- *" rules existing, you can tweak the
one above to be "- **" (with a superfluous '*') so you can make sure that
you see "because of pattern **" in the output.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20100502/c3640262/attachment.html>

More information about the rsync mailing list