[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rsync
Subject:    Re: data set changes
From:       Wayne Davison <wayned () samba ! org>
Date:       2005-02-25 22:40:53
Message-ID: 20050225224053.GA24999 () blorf ! net
[Download RAW message or body]

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/foo.sh onto DVD and take it to h3 and run
this:

    cd /mnt/dvdrom
    ./foo.sh

Or, if you need a different dest, this:

    cd /mnt/dvdrom
    ./foo.sh /different/dest/

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

..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