**MY** wildcard in recursive rsync
Wayne Davison
wayned at samba.org
Wed Oct 19 22:14:34 GMT 2005
On Tue, Oct 18, 2005 at 04:05:18PM +0200, stoil valchkov wrote:
> Obviously I would like to get all files & directories which has in path
> **MY**
The only solution rsync provides is to scan all directories, like this:
--include='*/' --include='*MY*/*' --include='*MY*' --exclude='*'
That creates the entire directory hierarchy, but only copies the
contents of a directory named *MY* and any files that are named
*MY*. If you want finer control, you need to do the scan yourself
and use the --files-from option.
..wayne..
More information about the rsync
mailing list