Re: Specify Includes Only

2010-03-27 Thread Paul
On Tue, Mar 23, 2010 at 09:09:18PM -0400, Matt McCutchen wrote: There is a --files-from option precisely for that purpose! Try: rsync -r --include-from=filt.txt --prune-empty-dirs \ --files-from=dirs.txt . destdir (Note that you need a source argument relative to which the

Re: Specify Includes Only

2010-03-23 Thread Matt McCutchen
On Sun, 2010-03-14 at 14:23 +, Paul wrote: On Sat, Mar 13, 2010 at 08:03:05PM -0800, Steven Monai wrote: $ cat dirs.txt EOF sourcedir/GroupA sourcedir/GroupC EOF $ rsync -r --include-from=filt.txt --prune-empty-dirs `cat dirs.txt` destdir I can't quite get that to work when the dirs

Re: Specify Includes Only

2010-03-14 Thread Paul
On Sat, Mar 13, 2010 at 08:03:05PM -0800, Steven Monai wrote: $ cat dirs.txt EOF sourcedir/GroupA sourcedir/GroupC EOF $ rsync -r --include-from=filt.txt --prune-empty-dirs `cat dirs.txt` destdir I can't quite get that to work when the dirs have spaces in them. I've tried various forms of

Specify Includes Only

2010-03-13 Thread Paul
Hi, sorry if this has been asked before, but I just can't find anywhere on the net that tells me how to do this. I've been trying for ages to get this right, using various forms of --include-from, --exclude, --filter, etc. I want to copy only specific directories that contain specific

Re: Specify Includes Only

2010-03-13 Thread Steven Monai
On 2010/03/13 3:33 PM, Paul wrote: I want to copy only specific directories that contain specific filetypes, from sourcedir to destdir. For example, I want to copy all .mp3 and all .ogg files found in the GroupA, GroupC directories under /home/paul/sourcedir/. For example, if I have