[prev in list] [next in list] [prev in thread] [next in thread]
List: rsync
Subject: Re: files-from and filter from one file?
From: Wayne Davison <wayned () samba ! org>
Date: 2006-08-24 17:06:28
Message-ID: 20060824170628.GB486 () blorf ! net
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic