From: Gerhard K. <ge...@ki...> - 2014-05-01 22:29:29
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 29.04.2014 08:52, schrieb Jerome: > $ gunzip < data.gramps > data.xml $ gunzip < backup.gramps > > backup.xml $ diff -u backup.xml data.xml > diff.patch > > You can try to generate a new 'merged' .gramps file, then to import > its content into a new database. I was a bit too quick in dismissing this. What I am doing now is almost the same, here's a bit more verbose way of telling it: 1) import the old, full backup into gramps 2) export it again as XML 3) create a diff in between the full and the partial XML backup Now I had a diff of about 5.5MB from a full backup of 10 MB and a partial backup of 6MB. The diff had almost 130k loc. It has over 2000 hunks of changes. I was able so split this patch file up into individual hunks, using splitpatch. I was then able to automatically discard those hunks that only had removals of lines, ie removing data that wasn't in the partial backup. I had to go through the rest of hunks manually and edit some of them. This process is not finished yet, I still have 273 hunks to look at. I am confident, that I will be able to restore my database from the resulting XML file. Then I'll devise a backup mechanism for the database, anybody got suggestions? Cheers, Gerhard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlNix7cACgkQfg6TFvELooSGSACgrTqkxqYEF0tKQ6dp3DDZB9tY ra4AnjtzNcZgbdDkS7Zki7QuWxWJ43Km =fjLS -----END PGP SIGNATURE----- |