[clug] Rsync Diffs

Andrew Janke a.janke at gmail.com
Mon Aug 3 06:08:06 UTC 2015


Unison can also produce patch files that will work for this use case.
You will have to resolve conflicts manually with both approaches or
pick a winner. I'm not aware of a way to do this with just rsync,
unless you add an external USB drive into the equation and ship it
back and forth.


On 3 August 2015 at 16:04, Brendan Jurd <direvus at gmail.com> wrote:
> Sounds like version control to me.
> Depending on the size of the files involved, you could put the whole thing
> into a git repository, ship the commit diffs, and apply them at the other
> end.  If the files are large, you might want to look at git-annex.  If that
> doesn't suit (or you don't want to do version control) you could just use
> `diff` and `patch` plus some scripting.
> Cheers,
> BJ
> On Mon, 3 Aug 2015 at 15:59 Brett Worth <brett.worth at gmail.com> wrote:
>> Hi All.
>> While we're on the topic of backups, I have a question.
>> Here's a hypothetical configuration:
>> SystemA  2 x data disks DiskA and DiskB
>> SystemB  1 x data disk DiskZ
>> These two machine start life connected to the same network and I use rsync
>> to make DiskA,
>> DiskB and DiskZ identical.
>> I then send SystemB to a remote place where there is no Internet access.
>> There is however
>> a mail service.
>> I make changes only to DiskA during the work day and wish to have these
>> changes
>> periodically reflected on DiskZ.  Each day I can run a task that sync's
>> DiskA to DiskB.
>> Is there any way I can capture the changes made to DiskB in such a way
>> that I could put
>> that information on a CD/DVD and post it to the location of SystemB so
>> that someone could
>> then apply the same changes to DiskZ?
>> This could be done using find/tar and some sort of timestamp system but I
>> was wondering if
>> there could be a more elegant way to do it.  Perhaps by capturing
>> something from rsync?
>> Regards
>> Brett
>> --
>>    /) _ _ _/_/ / / /  _ _//
>>   /_)/</= / / (_(_/()/< ///
>> --
>> linux mailing list
>> linux at lists.samba.org
>> https://lists.samba.org/mailman/listinfo/linux
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list