Including Specific files n levels deep

Wayne Davison wayned at samba.org
Fri Feb 13 22:35:41 GMT 2004


On Fri, Feb 13, 2004 at 09:20:57PM +0000, Andrew wrote:
> I want to use rsync to create: [...]

Put these lines into a file and then use the --files-from option:
 
% cat names
apache-1.3.26/Build
apache-1.3.26/Build.out
apache-1.3.26/Install
apache-1.3.26/Install.out
bzip2-1.0.2/Build
bzip2-1.0.2/Build.out
bzip2-1.0.2/Install
bzip2-1.0.2/Install.out
% rsync -tv --files-from=names /home/build /backup

I'm assuming that none of those are directories.  If you want all the
files from inside a named directory, add the -r option.

..wayne..


More information about the rsync mailing list