On 12 Feb 2001, "Ph. Marek" <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I have a question. Sorry if it's been asked before, couldn't find it the
> archives.
>
>
> Is it possible to tell rsync to use multiple source trees with a given
> priority for colliding files?
I'm not quite sure what you want to have happen in the case of
colliding files. If you want A to override XYZ, B to override that,
and C to override that then you could simply transfer all four trees
in that order:
rsync -avz --delete xyz/ otherguy:/foo
rsync -avz a/ otherguy:/foo
rsync -avz b/ otherguy:/foo
rsync -avz c/ otherguy:/foo
Alternatively, if you want the most recently modified file from a, b,
and c to win, you could use the --update option:
rsync -avz --delete xyz/ otherguy:/foo
rsync -auvz a/ otherguy:/foo
rsync -auvz b/ otherguy:/foo
rsync -auvz c/ otherguy:/foo
If this is not what you wanted please try to expand on your example.
--
Martin Pool, Human Resource
Linuxcare. Inc. +61 2 6262 8990
[EMAIL PROTECTED], http://linuxcare.com.au/
Linuxcare. Putting Open Source to work.