files-from and filter from one file?

Matt McCutchen hashproduct+rsync at gmail.com
Thu Aug 24 16:59:07 GMT 2006


On 8/24/06, Jannes Faber <j.faber at elevate.nl> wrote:
> Is it possible to somehow combine --files-from and --filter into one file,
> so that I can use one here-document?

In bash you can use multiple here-documents, like this:

rsync <blah> --filter='. -'  <<ENDFILTERS --files-from=/dev/fd/3 3<<ENDFILES
+ foo
- bar
ENDFILTERS
file1
path/to/file2
ENDFILES

Does that solve the problem?

Matt


More information about the rsync mailing list