sending the same source to several dests

Wayne Davison wayned at samba.org
Thu Nov 9 17:08:33 GMT 2006


On Thu, Nov 09, 2006 at 10:00:29AM +0100, Christophe LYON wrote:
> I am using rsync to mirror a source tree towards several destinations.
> Currently, I start rsync as many times as I have destinations, is there 
> a better way that would for instance need to scan the source tree only once?

If you keep your mirrors in an identical state, you can use batch mode.
You need to create the batch file from one transfer using --write-batch
(choose the fastest network connection to reduce this build time), and
then you can use the batch file to send the same update to all the other
mirrors using --read-batch.

If you go this route, you'll need at least rsync 2.6.3 (due to older
versions have really flaky batch-file support).  But, even newer is
better (there have been a few bug-fixes in the batch code since then).

..wayne..


More information about the rsync mailing list