How to emulate rdiff behaviour
Carlos Carvalho
carlos at fisica.ufpr.br
Mon Jun 1 13:15:27 GMT 2009
Matt McCutchen (matt at mattmccutchen.net) wrote on 31 May 2009 23:11:
>On Mon, 2009-06-01 at 07:10 +0800, Daniel.Li wrote:
>> On Sun, 2009-05-31 at 14:34 -0400, Matt McCutchen wrote:
>> > > And one more thing here:
>> > > If you are going to prepare this batch file, it seems there will be
>> > double the workload of network, see below statements? Is that right?
>> > >
>> > > > rsync -av --only-write-batch=/batches/$DATE
>> > bhost:/backup2/ /backup/
>> > > > rsync -av /backup/ bhost:/backup2/
>> >
>> > Not if you put /backup and /backup2 on the same machine by dropping
>> > the
>> > "bhost:" from those commands, as Wayne mentioned. He included it just
>> > to point out the possibility of having those dirs on different
>> > machines.
>> >
>>
>> Humm... I have a NAS storage device, which is bhost,
>
>Does it have to be that way? If you run Wayne's entire command sequence
>on the NAS, you won't have a "bhost" and you'll avoid doubling the
>network usage.
In this case rsync automatically uses --whole-file. Will it do the
same in the case of --only-write-batch? Is it necessary to use
--no-whole-file if we want the batch file to have only the differences?
More information about the rsync
mailing list