Deja Dup restore error Help Please

mygnu

I'm running Ubuntu 12.10

  • Intel i5
  • 8Gb
  • 1TB
  • Gigabyte MB

I have backed up all my data(Home folder only) to an external HDD. Today, after a fresh OS install with the same version of Ubuntu, I can't restore my data.

The following error comes up every time I have also tried command line:

duplicity --gio file:///media/backup /tmp/restore

same error

raceback (most recent call last):
  File "/usr/bin/duplicity", line 1412, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1405, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1339, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 630, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 522, in Write_ROPaths
    for ropath in rop_iter:
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 495, in integrate_patch_iters
    final_ropath = patch_seq2ropath( normalize_ps( patch_seq ) )
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 462, in patch_seq2ropath
    assert first.difftype != "diff", patch_seq
AssertionError: [(('home', 'harry', '.apport-ignore.xml') reg)]

Please help.

sir_brickalot

I'm on Ubuntu 12.04 and had trouble restoring a backup with either Deja-Dup or Duplicity. After two days of research and trial and error I would recommend the following steps (jump to Step 4 if you want a quick restore solution but bear in mind that the problems will be back withtout Steps 1-3):

Step 1: Try to restore your backup via Terminal with Duplicity.

  1. If Deja Dup gives errors, open Terminal and try

    duplicity --gio file:///media/backup /tmp/restore
    
  2. Be sure to use file:/// because Duplicity expects a URL.
  3. That didn't work? Check if Duplicity has got a problem by running a test script from Launchpad, found here: https://bugs.launchpad.net/duplicity/+bug/1252484. Direct Link: https://bugs.launchpad.net/duplicity/+bug/1252484/comments/10.

Step 2: Fix Duplicity error(s) by upgrading to proposed version if necessary:

  1. Enable Proposed Repository here: Applications→Ubuntu Software Center→Edit→Software Sources→Updates. Do NOT update your system now because proposed repo is beta!
  2. Upgrade Duplicity only with these commands (replace /precise with your Ubuntu version name). More info at https://wiki.ubuntu.com/Testing/EnableProposed:

    sudo apt-get update
    sudo apt-get install duplicity/precise-proposed
    
  3. Disable proposed repository!

  4. Reboot and run test script again. Error should be gone!

Step 3: Check for other errors in Duplicity.

  1. Run Duplicity again in verbose mode (you will probably still get errors):

    duplicity -v9 --gio file:///media/backup /tmp/restore
    
  2. Check for the following error at the start of your terminal output:

    Import of duplicity.backends.sshbackend Failed: No module named paramiko 
    
  3. If you find that error install another package (Found here: http://www.rubenortiz.es/2012/12/11/ubuntu-no-module-named-paramiko/):

    apt-get install  python-paramiko
    

Step 4: Find and fix Deja Dup problem.

  1. Run duplicity in terminal again:

    duplicity -v9 --gio file:///media/backup /tmp/restore
    
  2. You will still have the AssertionError & the log tells you that some parts of your backup will be skipped because the are not accepted by duplicity.
  3. Navigate into your backup folder.
  4. Locate files that are named similar to this: duplicity-full-signatures.20130523T142126Z.sigtar.gz.
  5. Move all except one of these files out of the backup folder to a safe place.
  6. Try Duplicity command again. It should work now.
  7. If it doesn't work yet, try out with different sig-files.
  8. Try Deja Dup again. It should work now.

In the unfixed version Duplicity creates duplicate signature-files that lead to broken restore. I don't know which of the signature-files have to be preserved so trial an error! Info found here: https://bugs.launchpad.net/ubuntu/+source/duplicity/+bug/633101 and here: https://bugs.launchpad.net/duplicity/+bug/703142.

Sidenote: I wasn't able to upgrade Deja Dup to recent stable version. It just stayed on v22, so maybe there is a problem, too.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to restore backup configurations of deja-dup

From Dev

How to restore backup configurations of deja-dup

From Dev

How to restore a broken Deja Dup backup manually

From Dev

Restore backup using Deja Dup failed

From Dev

Error using Backups in Ubuntu 18.10 (it was Deja Dup)

From Dev

Deja-dup splicing error on Ubuntu 17.04

From Dev

How can I fix Deja Dup hanging on restore?

From Dev

What to do when deja-dup restore failed?

From Dev

Deja Dup restore lost last modified dates of files

From Dev

Restore partition. HELP PLEASE

From Dev

Please help in finding the error

From Dev

Deja-Dup "g-io-error-quark" error

From Dev

Restoring with Deja Dup program

From Dev

Restoring with Deja Dup program

From Dev

"Backup Failed": Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup

From Dev

"Backup Failed": Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup

From Dev

Deja Dup gives "Invalid or incomplete multibyte or wide character" when attempting to restore from backup

From Dev

Restoring files with deja-dup fails with "could not restore /home/user/%N"

From Dev

How to restore a deja-dup backup using a ubuntu booted from usb live?

From Dev

ArrayIndexOutOfBoundsException please help find the error

From Dev

What is the error in this code please help:

From Dev

Different backup through deja dup

From Dev

Deja Dup (Backup) Not Ignoring Folders

From Dev

Deja dup backup permission issue

From Dev

deja-dup is still failing

From Dev

Error: BrokenCount >0 Ubuntu Error PLEASE HELP

From Dev

How can I fix this gpg error with Backup (deja-dup, duplicity)?

From Dev

Ionic serve throws this error code help please

From Dev

Error 1120: Access of Undefined Property help please

Related Related

  1. 1

    How to restore backup configurations of deja-dup

  2. 2

    How to restore backup configurations of deja-dup

  3. 3

    How to restore a broken Deja Dup backup manually

  4. 4

    Restore backup using Deja Dup failed

  5. 5

    Error using Backups in Ubuntu 18.10 (it was Deja Dup)

  6. 6

    Deja-dup splicing error on Ubuntu 17.04

  7. 7

    How can I fix Deja Dup hanging on restore?

  8. 8

    What to do when deja-dup restore failed?

  9. 9

    Deja Dup restore lost last modified dates of files

  10. 10

    Restore partition. HELP PLEASE

  11. 11

    Please help in finding the error

  12. 12

    Deja-Dup "g-io-error-quark" error

  13. 13

    Restoring with Deja Dup program

  14. 14

    Restoring with Deja Dup program

  15. 15

    "Backup Failed": Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup

  16. 16

    "Backup Failed": Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup

  17. 17

    Deja Dup gives "Invalid or incomplete multibyte or wide character" when attempting to restore from backup

  18. 18

    Restoring files with deja-dup fails with "could not restore /home/user/%N"

  19. 19

    How to restore a deja-dup backup using a ubuntu booted from usb live?

  20. 20

    ArrayIndexOutOfBoundsException please help find the error

  21. 21

    What is the error in this code please help:

  22. 22

    Different backup through deja dup

  23. 23

    Deja Dup (Backup) Not Ignoring Folders

  24. 24

    Deja dup backup permission issue

  25. 25

    deja-dup is still failing

  26. 26

    Error: BrokenCount >0 Ubuntu Error PLEASE HELP

  27. 27

    How can I fix this gpg error with Backup (deja-dup, duplicity)?

  28. 28

    Ionic serve throws this error code help please

  29. 29

    Error 1120: Access of Undefined Property help please

HotTag

Archive