Does somebody have an idea how to restore as much as possible from duplicity backup when a file is missing in the chain?
I extract it:
for t in duplicity-full.20180215T115508Z.*.difftar.gz; do tar xvf $t; done
Then I put the merged deltas to a file called content
find multivol_snapshot/ -type f -printf '%h\0' | sort -uz | xargs -0 -n 1 sh -c 'cd "$1" ; cat $(ls | sort -n) > content' spacer
Then I copy the content files to a new location:
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
mkdir -p ~/restore1/$(dirname $(dirname $line))
cp $line ~/restore1/$(dirname $line)
done < "$1"
Now I can copy the files back to where they were:
cp -Rf ~/restore1 /
Is there an easier way???
My sources:
https://wiki.gnome.org/Apps/DejaDup/Help/Restore/WorstCase#Restoring_by_Hand