Recombining 64kB blocks of a broken duplicity / deja dup backup after manual decryption
I switched from backintime to duplicity / deja dup version 0.6.15 (might have been 0.6.14 when doing the backup) only some weeks ago.
After an update the system broke and was not bootable.
No problem, as i assumed the deja dup backup was there.
I ran into the SHA1 mismatch issue, with 7 out of 699 50MB pgp packages.
I tried out the instructions from https:/
Now, i have two folders multivol_snapshot and snapshot , the first one containing one folder per file, which then contains 64kb parts of the actual file.
As I wanted to restore as much - and as good - as possible, I looked for scripts that do the 'cat' automatically .
I tested the one from here
https:/
which uses the line
do("cat \"" + path + "\"/* > \"" + m2s(path) + "\"")
on each folder to recombine the puzzle
It creates the files, but something goes wrong.
Lets say an Image was spread on 4 blocks. If I want to view that image, half of it looks ok, but the rest is missing. Or the image looks picassofied. Funny, at times if, but not a solution to get back your family pictures of past 10 years.
This person describes a similar behavior.
https:/
I tried out that shell command in one folder:
cat `ls [0-9]* | sort -n` > img.jpg
And, Voilá: that creates a valid jpeg out of the many 64kB blocks.
I have no idea of the python syntax, thence the question is:
How do I combine that line
cat `ls [0-9]* | sort -n` > img.jpg
into the script from
https:/
so that it preserves the correct filename and can be run automatically, recursing / walking down the entire backup folder structure?
This would be a great improvement for Micheals emergency description at https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu duplicity Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- tomx
- Solved:
- Last query:
- Last reply: