> I want to rsync a list of files (relative paths), not entire
> directory trees. I know I can pass the list on the command line like
> so:
 
>  cd /parent/dir
>  rsync -v -R relative/path/to/file.ext host:/parent/dir

> I want to use --include-from=INCLUDE so I can pass a list of files
> outside of the command line. Dropping the relative paths in there
> doesn't seem to cut it though. Pilot error? If so, please advise.

You need to put in this file:

+ relative
+ relative/path
+ relative/path/to
+ relative/path/to/file.ext
- relative/*
- relative/path/*
- relative/path/to/*

then say:

  cd /parent/dir
  rsync -v --include-from=INCLUDE . host:/parent/dir

This is thus not the simpler way for what you want to do.  You may
prefer, as far as the list of files is not too long, to list them in a
file, (say file-list) and call:

  rsync -v -R `cat file-list` host:/parent/dir

[EMAIL PROTECTED], Tel: (33)04 92 38 79 11
INRIA Sophia, 2004, rte des Lucioles, B.P.93 - 06902 Sophia Antipolis Cedex

Reply via email to