data set changes

Wayne Davison wayned at
Fri Feb 25 22:40:53 GMT 2005

On Fri, Feb 25, 2005 at 04:02:24PM -0600, Dale Bohl wrote:
>    When I run rsync again the next week on h2, I want to write any changes
> that have occurred to the data set to a sperate directory on h2.
> Those changes must then be burned to a DVD and then sneakernetted to h3
> for an update to the h3 data set there.

Sounds like --write-batch will do what you want.  Assuming you are using
rsync 2.6.3 (I would not recommend earlier rsync's batch support).  So
run this on h2:

    cd /tmp
    rsync -av --write-batch=foo h1:/src/ /dest/

Or _alternately_, this on h1:

    cd /tmp
    rsync -av --write-batch=foo /src/ h2:/dest/

Then, burn /tmp/foo and /tmp/ onto DVD and take it to h3 and run

    cd /mnt/dvdrom

Or, if you need a different dest, this:

    cd /mnt/dvdrom
    ./ /different/dest/

That's the simple version.  You aren't required to use the file
if you want to run the appropriate --read-batch=foo command yourself on


More information about the rsync mailing list