how to mirror only selected directories?
Moe, Mark
mark.moe at medtronic.com
Mon Aug 29 21:10:52 GMT 2005
Hi,
I've tried various combinations of --exclude and --include, but I can't
quite get it. What I'd like to do is only mirror certain directories in
a tree. For example, say a directory tree starting at /x contained
under it several directories named "abc". I want to mirror only the
"abc" directories and what's under them and nothing else.
/x/abcdef/456
/x/y/z
/x/y/abc/123
/x/z/123
/x/z/abc/456
If the above represents the 5 files under /x, then I'd like to rsync to
only mirror the files under "abc" folders, namely /x/y/abc/ and
/x/z/abc/. I tried to include '*/abc/*' and exclude '*', but that
didn't work.
Thanks,
- Mark
More information about the rsync
mailing list