Yet another include/exclude question

Wayne Davison wayned at samba.org
Mon Nov 9 09:02:55 MST 2009


On Sun, Nov 8, 2009 at 10:21 PM, Thomas Gutzler <thomas.gutzler at gmail.com>wrote:

> I thought --include="/this_dir/" --include="/this_dir/***" would do it,
> but it doesn't. The exclude * seems to overwrite the include matches:
>  [sender] hiding file this_dir/foo because of pattern *
>

Order is important.  Whatever matches first, is what takes effect.  Also,
*** matches both the dir and its contents, so you could use:

  --include='/this_dir/***' --exclude=*

As long as "this_dir" is in the root of the transfer, that will work.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20091109/3a2d3cab/attachment.html>


More information about the rsync mailing list