syncing two pcs

hendrik at topoi.pooq.com hendrik at topoi.pooq.com
Sat Aug 16 15:57:43 EDT 2008


On Sat, Aug 16, 2008 at 09:19:00AM -0700, David Brown wrote:
> On Sat, Aug 16, 2008 at 10:08:36AM -0400, Donald Allen wrote:
> 
> >In my situation, there's no USB drive, except for backup. When I'm
> >switch from computer A to computer B, I rsync from A to B.
> 
> This is the main advantage of unison over rsync, it remembers which
> direction you need to sync in.

If I recall correctly, it does this by maintaining a copy of 
the file from the last time the two were identical.  This means that it 
can tell which was chenged, and it can pich that one.  It doesn't 
resolve conflicts when both are changed.  You have to sort that out 
yourself.

-- hendrik

>  If you do end up 
editing both, it
> presents you with a choice as to which one you want to use.  I've done
> this occasionally, and usually, I can just pick the correct one, and
> re-enter a few transactions.  Sometimes, I'm even lucky enough for
> them to be independent, and I can just replay the extra log file.
> 
> I did end up writing a small script to put the gnucash data file into
> git instead of all of the backup files.  I store them uncompressed,
> and with git's delta compression, so far storing 256 copyies of my
> data file (which is about 4.5MB now) takes less space than 2
> compressed copies of the data.
> 
> Also, keeping the gnucash data file uncompressed makes programs like
> rsync and unison _much_ faster.  Once it's compressed, the data is
> pretty much completely different, whereas left uncompressed, rsync's
> algorithm can figure out deltas to transfer.
> 
> David
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list