>>>>> " " == August Zajonc <[EMAIL PROTECTED]> writes:

     > I'd like to simple transfer a list of files with no attempt to
     > build up huge file lists. These files will be scattered around
     > a directory containing around 500,000 files in total. can I
     > simply pass --include-file pointing to the list of files to
     > transfer or is something more involved? The problem is that my
     > source file list will be complete filenames, ie
     > /home/aaa/dir1/file and /home/aaa/dir2/file2 but the
     > destination rsync server has a root aaa for /home/aaa.

     > The trick is that the files are in a whole bunch of different
     > directories, and I can't seem to wrangle it to work with
     > something like rsync --include-from=filelist dest.com::aaa

     > August

The trick here is to rsync the complete directory but exclude
everything and then include what you need. Confused?

Lets see an example (from the debian rsync mirror script):

rsync $FLAGS $HOST::debian/pool/ --include-from .filelist --exclude '*' $DEST/pool/

This will mirror everything from HOST::debian/pool to DEST/pool, so
there you see how to shorten the path.

But "--exclude '*'" will ignore all files except what has been allowed
by "--include-from .filelist".

Hope that helps,
                       Goswin

Reply via email to