staging.inyokaproject.org

Duplicity Backup lässt sich nicht verifizieren oder wiederherstellen

Status: Ungelöst | Ubuntu-Version: Server 12.04 (Precise Pangolin)
Antworten |

Becksta

Avatar von Becksta

Anmeldungsdatum:
4. März 2007

Beiträge: 49

Hallo zusammen,

ich nutze auf meinem Server seit kurzem duplicity als Backup Tool. Das Wegscreiben des Backups scheint auch offenkundig zu funktionieren. So lege ich das Backup an:

duplicity /home/Daten/Dokumente file:///home/smartdrive/Backup/Server/Dokumente >>/var/log/duplicity/Dokumente.log

Und damit verifiziere ich:

duplicity verify file:///home/smartdrive/Backup/Server/Dokumente /home/Daten/Dokumente

Ich sichere auf meinem lokal gemounteten 1und1 smartdrive. Beim "verifiy", bzw. "restore" erhalte ich aber folgendes zurück:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
root@server:/home/becksta# duplicity restore file:///home/smartdrive/Backup/Server/Dokumente /home/Daten/test
Import of duplicity.backends.giobackend Failed: No module named gio
Import of duplicity.backends.sshbackend Failed: No module named paramiko
Lokale und entfernte Metadaten sind bereits synchron, keine Synchronisierung benötigt.
Warning, found the following local orphaned signature file:
duplicity-new-signatures.20130205T215436Z.to.20130205T220512Z.sigtar.part
Warning, found the following orphaned backup file:
[duplicity-inc.20130205T215436Z.to.20130205T220512Z.manifest.part]
Letzte vollständige Sicherung: keine
GnuPG-Schlüssel: 
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1411, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1404, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1338, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 629, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/bin/duplicity", line 651, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 947, in get_backup_chain_at_time
    raise CollectionsError("No backup chains found")
CollectionsError: No backup chains found

Das log sieht eigentlich auch ganz ok aus:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--------------[ Backup-Statistiken ]--------------
StartTime 1360236860.98 (Thu Feb  7 12:34:20 2013)
EndTime 1360240483.86 (Thu Feb  7 13:34:43 2013)
ElapsedTime 3622.88 (1 hour 22.88 seconds)
SourceFiles 22387
SourceFileSize 5020948763 (4.68 GB)
NewFiles 22387
NewFileSize 5020948763 (4.68 GB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 22387
RawDeltaSize 5011904795 (4.67 GB)
TotalDestinationSizeChange 4825510956 (4.49 GB)
Errors 0
--------------------------------------------------

Import of duplicity.backends.giobackend Failed: No module named gio
Import of duplicity.backends.sshbackend Failed: No module named paramiko
Lokale und entfernte Metadaten sind bereits synchron, keine Synchronisierung benötigt.
Warning, found the following local orphaned signature file:
duplicity-new-signatures.20130205T215436Z.to.20130205T220512Z.sigtar.part
Warning, found the following orphaned backup file:
[duplicity-inc.20130205T215436Z.to.20130205T220512Z.manifest.part]
Letzte vollständige Sicherung: Thu Feb  7 12:34:20 2013
Keine alten Backups gefunden, nichts gelöscht.

Das er dort offenbar noch etwas altes findet irritiert mich, da ich den Sicherungsordner bereits diverse male gelöscht habe. Interessanterweise erhalte ich diese Meldung nicht beim Versuch, exemplarisch z.b. die /etc/fstab zu sichern. Dort klappt dann auch die Wiederherstellung.

Hat jemand je Idee, woran es hier hapert? Das Tool als solches finde ich genial, von daher wäre es schick, wenn ich damit auch meinen Server sauber sicher könnte ☺

Greetz Becksta

Becksta

(Themenstarter)
Avatar von Becksta

Anmeldungsdatum:
4. März 2007

Beiträge: 49

Hm,

heute morgen sah es so aus, als ob der restore laufen würde, allerdings brach er dann mittendrin hiermit ab:

Letzte vollständige Sicherung: Thu Feb  7 12:34:20 2013
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1411, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1404, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1338, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 629, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 524, in Write_ROPaths
    ITR( ropath.index, ropath )
  File "/usr/lib/python2.7/dist-packages/duplicity/lazy.py", line 335, in __call__
    last_branch.fast_process, args)
  File "/usr/lib/python2.7/dist-packages/duplicity/robust.py", line 37, in check_common_error
    return function(*args)
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 577, in fast_process
    ropath.copy( self.base_path.new_index( index ) )
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 426, in copy
    other.writefileobj(self.open("rb"))
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 602, in writefileobj
    buf = fin.read(_copy_blocksize)
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 202, in read
    if not self.addtobuffer():
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 227, in addtobuffer
    self.tarinfo_list[0] = self.tar_iter.next()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 334, in next
    self.set_tarfile()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 323, in set_tarfile
    self.current_fp = self.fileobj_iter.next()
  File "/usr/bin/duplicity", line 665, in get_fileobj_iter
    backup_set.volume_name_dict[vol_num],
KeyError: 50

Ich verstehe das nicht.... ☹ Tut es jemand anderes???

Greetz Becksta

Antworten |