Extract duplicity difftar files manually

6,799

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.

Share:
6,799

Related videos on Youtube

Admin
Author by

Admin

Updated on September 17, 2022

Comments

  • Admin
    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
    TrinitronX about 11 years
    Thanks 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 adding sudo is necessary to restore files owned by uid 0 (root).
  • jcarlosweb
    jcarlosweb over 3 years
    Is it possible to generate the backups without the difftar format? or any other alternative?