Specify Includes Only

Paul rsync908347 at rainslide.net
Sat Mar 27 11:19:31 MDT 2010


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 --files-from
>paths will be interpreted.)

Brilliant! Thanks, both.

-- 

.


More information about the rsync mailing list