Dena gaizki doanean

Déjà Dup may fail. Maybe it crashes or gives you an error when you try to restore. When you really need your data back, the last thing you want do deal with is a bug. Consider filing a help request but in the meantime, here are some approaches to workaround a misbehaving Déjà Dup and get your data back.

Hurrengo azalpena oso teknikoa da. Ez badiozu zentzurik hartzen, galdetu beldurrik gabe.

These instructions assume you have a command line available. Open a Terminal window first.

Restic or Duplicity?

Over time, Déjà Dup has used different backup tools under the covers. Originally, it used Duplicity. Nowadays, it uses Restic.

Your backup might be in either format, depending on when you created it.

Look in the folder where your backup is kept:

  • If the filenames all start with duplicity-, then it's a Duplicity backup. Read the Duplicity sections below.

  • If you see a config file and a few folders like keys, then it's a Restic backup. Read the Restic sections below.

Restoring with Restic

On the assumption that Déjà Dup is just not working for you right now, let’s use the command line tool Restic that is used by Déjà Dup behind the scenes to back up and restore your files.

If you want more information about Restic than presented here, run restic --help.

Saiatuko garen lehen gauza zure datu guztien leheneratze soila izango da. Demagun zure fitxategiak /media/backup modura muntatutako kanpo-gailu batean daudela eta babeskopia zifratzea aukeratu zenuela. Saiatu hau:

restic restore --repo=/media/backup --target=/tmp/restore latest

Babeskopia ez bazenuen zifratu, erantsi --insecure-no-password komandoari.

If you need to do more advanced debugging, read their troubleshooting guide.

Duplicity bidez leheneratzen

On the assumption that Déjà Dup is just not working for you right now, let’s use the command line tool duplicity that is used by Déjà Dup behind the scenes to back up and restore your files.

If you want more information about Duplicity than presented here, read its online documentation.

Saiatuko garen lehen gauza zure datu guztien leheneratze soila izango da. Demagun zure fitxategiak /media/backup modura muntatutako kanpo-gailu batean daudela eta babeskopia zifratzea aukeratu zenuela. Saiatu hau:

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

Babeskopia ez bazenuen zifratu, erantsi --no-encryption komandoari.

Other Storage Locations

If you backed up to a remote or cloud server, the syntax you use with Duplicity will be different than the external drive example above.

Read the Duplicity documentation for instructions on how to connect to your server, or try downloading all the Duplicity files yourself to a local folder and following the simpler example above.

Restoring Duplicity Files by Hand

Duplicity-k berak ere funtzionatzen ez badu, esperantza gutxi. Babeskopiaren fitxategi-formatua konplexua da eta ezin da erraz manipulatu. Hala ere, oso larri bazabiltza, beste saio bat egin daiteke.

Babeskopia urruneko edo hodeiko zerbitzari batean egin baduzu, hasteko deskargatu duplicity-ren fitxategiak eta jarri zure ordenagailuko karpeta batean. Ondoren, sartu karpeta horren bide-izena zure terminalean.

Duplicity aplikazioak bolumen izeneko puska txikietan gordetzen ditu datuak. Bolumen batzuk aldizka egindako kopia berri edo 'full' deritzenak dira, etab beste batzuk 'inc' edo inkrementalenak dira. Babeskopia oso baten bolumen-multzoaren 1. bolumenean hasita, fitxategiak bolumenez bolumen leheneratu beharko dituzu.

Zure babeskopia zifratu bazenuen, lehenengo bolumena deszifratu behar duzu gpg komandoarekin. Demagun duplicity-full.20110127T131352Z.vol1.difftar.gpg daukazula:

gpg --output duplicity-full.20110127T131352Z.vol1.difftar --decrypt duplicity-full.20110127T131352Z.vol1.difftar.gpg

Edo dena batera egin (segurtatu nahiko espazio daukazula!):

gpg --multifile --decrypt duplicity-full.20110127T131352Z.*.difftar.gpg

Orain .difftar edo .difftar.gz bolumena daukazu (hura deszifratu behar izan duzun ala ez). Erabili tar banakako adabaki-fitxategiak erauzteko:

tar xf duplicity-full.20110127T131352Z.vol1.difftar

Edo berriro, egin dena batera:

for t in duplicity-full.20110127T131352Z.*.difftar; do tar xf $t; done

Orain adabaki-fitxategiak multivolume_snapshot eta snapshot karpetetan egongo dira. Bolumen anitz hartu zituen fitxategi bakoitza multivolume_snapshot karpetan egongo da. Demagun /home/jane/essay.txt fitxategiaren babeskopia egin zenuela:

cd multivolume_snapshot/home/jane/essay.txt
cat * > essay.txt

Babeskopia inkrementaletako datuak berreskuratzeko, erabili rdiff fitxategiak itsasteko. Ikusi man rdiff erabilera ezagutzeko.