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

--- Comment #2 from Kevin Korb <rs...@sanitarium.net> 2014-03-14 00:12:53 UTC 
---
BTW, there is also a recursive example in the include/exclude pattern rules:
>  The combination  of  "+ */", "+ *.c", and "- *" would include all 
> directories and C source files but nothing else (see also the 
> --prune-empty-dirs option)

In other words:
rsync -rt --prune-empty-dirs --include="*/" --include="*.c" --exclude="*"
/path/to/source/ /path/to/target/
will copy all *.c files and the directories leading to them in an entire tree.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
-- 
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