Wanneer Alles Verkeerd Gaan

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.

Hierdie is gaan tegnies raak. As geeneen hiervan vir jy sin maak nie, moenie bang wees om vra vir hulp.

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.

Die eerste ding wat ons sal probeer is 'n eenvoudige restoureer van al jou data. Die aanvaarding van jou lêers op 'n eksterne ry gemonteer as /media/backup en jy het gekies om die rugsteun te enkripteer, probeer dit:

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

As jy die back-up nie het enkripteer, voeg --insecure-no-password tot die beveel.

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

Restoureer tans met Dubbeldheid

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.

Die eerste ding wat ons sal probeer is 'n eenvoudige restoureer van al jou data. Die aanvaarding van jou lêers op 'n eksterne ry gemonteer as /media/backup en jy het gekies om die rugsteun te enkripteer, probeer dit:

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

As jy die back-up nie het enkripteer, voeg --no-encryption tot die beveel.

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

Indien selfs dubbeldheid werk nie vir u nie, daar is miskien min hoop. Die rugsteunlêerformaat is ingewikkeld en word nie maklik gemanipuleer nie. Maar as u desperaat is, is dit die moeite werd om te probeer.

As jy gebruik 'n afgeleë of wolk bediener om jou rugsteun stoor, eerste af te laai al die dubbeldheid lêers en plaas dit in 'n lêergids op jou rekenaar. Voer dan die lêergids in jou terminale in.

Dubbeldheid stoors jou data in klein stukkies genoem volumes. Sommige volumes behoort tot die periodieke ‘full’ of vars rugsteune en ander om die ‘inc’ of inkrementele rugsteune. Begin tans met 'n volledige stel volumes by volume 1, moet jy lêers volume vir volume restoureer.

As jy jou rugsteun geïnkripteer, eers moet jy die volume met decrypt met gpg. Sê jy het duplicity-full.20110127T131352Z.vol1.difftar.gpg:

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

Of om alle tegelyk te doen (sorg dat jy genoeg ruimte het!):

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

Nou het jy óf 'n .difftar of 'n .difftar.gz volume (afhangende van of jy het om dit te dekripteer of nie). Gebruik tar op watter een jy ook al die individuele pleisterlêers moet uittrek:

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

Of weer, om alle tegelyk te doen:

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

Nou sal die pleister lêers in wees multivolume_snapshot en snapshot vouers. Elke lêer wat oor verskeie volumes strek sal in wees multivolume_snapshot. Kom ons sê jy rugsteun up /home/jane/essay.txt:

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

Om data van inkrementele rugsteun te herstel, gebruik rdiff om die lêers saam te stik. Sien man rdiff vir gebruike.