On Thu, Aug 24, 2006 at 06:45:19PM +0200, Jannes Faber wrote: > Is it possible to somehow combine --files-from and --filter into one file, > so that I can use one here-document?
No, but as long as you don't have a huge number of --files-from lines, you can just turn them into command-line args and get the same effect. For instance, this command, given an input of "foo/one" and "bar/two": rsync -av --files-from=list.txt /src /dest is entirely the same as this command (note absense of -r and presence of -R, and use of embedded /./ dir): rsync -RlptgoDv /src/./foo/one /src/./bar/two /dest The use of /./ requires a very recent rsync (at least 2.6.7). Older rsync versions require a chdir instead, perhaps in a sub-shell: (cd /src && rsync -RlptgoDv foo/one bar/two /dest) ..wayne.. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html