Extract duplicity difftar files manually
I think the command you are looking for is more along the lines of
duplicity restore --file-to-restore / file:///path/to/backups /path/to/dir
you may have to use
duplicity -t 3D restore --file-to-restore / file:///path/to/backups /path/to/dir
or such because the command you ran is to backup, and not restore, so your latest backup might be the empty directory you pointed it to.
Related videos on Youtube
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on September 17, 2022Comments
-
Admin almost 2 years
I have a duplicity backup which i am not able to recover with duplicity.
By calling duplicity file:///path/to/backups /path/to/dir, it returns "Local and Remote metadata are syncronized, no sync needed." but the /path/to/dir is empty.
I decrypted all backup volumes and I'm able to view and extract the files from the different difftar files. My only problem is that there are files partitioned and saved in folders named after the files.
Can anyone give me a simple script or at least a hint how to untar these difftar files so i get the actual files instead of the partitioned ones?
-
TrinitronX about 11 yearsThanks for giving a great example! The man page has some backup examples with
file://
target urls, but none with restores. Restoring all files works also without the explicit--file-to-restore /
flag (you can use this flag to only restore specific files/dirs):sudo duplicity restore file:///path/to/backups /path/to/dir
. Note that addingsudo
is necessary to restore files owned by uid 0 (root). -
jcarlosweb over 3 yearsIs it possible to generate the backups without the difftar format? or any other alternative?