Re: include/exclude patterns to copy just certain files?

2004-07-07 Thread Bob Proulx
Wayne Davison wrote: Bob Proulx wrote: rsync -a --include '*/' --include '**/a1/foo' --exclude * . example.com:/tmp/ Yes, that is the way to use include/exclude without first figuring out where all the foo files are. As you noted that results in all directories in the tree being

Re: include/exclude patterns to copy just certain files?

2004-07-05 Thread Wayne Davison
On Sat, Jul 03, 2004 at 05:25:05PM -0600, Bob Proulx wrote: rsync -a --include '*/' --include '**/a1/foo' --exclude * . example.com:/tmp/ Yes, that is the way to use include/exclude without first figuring out where all the foo files are. As you noted that results in all directories in the