Ubuntu – Restoring backup with Deja Dup from external HD

deja-dupexternal-hddrestore

So, here's the problem that I have with restoring. First, I backed up like everything. So I had place on the external HD for only one copy.

I had to reinstall everything, but I didn't worry because I had a backup. But now, restoring doesn't work and it starts to be annoying.

So, I right click "Restore missing files…". Then I have the popup window from Deja Dup asking where is the backup. So, I select the external HD and either put nothing in "folder" or just put ".". Thinking that it should be the base to look for backups.

In both cases, after a while scanning, I get: The Volume "Filesystem root" has only 139.7mb disk space remaining. But my partition "/home" has 799.6Gb free. Also, I just want to restore some files, I don't need all of them.

On my external HD, there's a file called: duplicity-full.20120514T220834Z.manifest. A text file. In it, I can see that everything is partitions in files of 52mb. So, small files are in one archive while very large files are split in multiple one. But I can see the exact list of file that I have.

So, I'm guessing that my backup is intact.

What am I doing wrong ?

Is possible that it failes, even to list all the files, because I don't have enough space left on my ExtHD ? Why can't duplicity used another location to do that ?

Best Answer

I advise you to try to restore a important files.

The commande line : duplicity list-current-files --no-encryption file:///media/[rest of the root to your hard_disk] > /home/yourusername/list.txt don't liste all files in the backup since the beginning, source

and from author You can restore the full monty or selected folders/files from a specific time.

Try to creat list of files and directory you need to restore using liste.txt generated by last commande and the liste of files in the manifest genereted by Deja Dup in backup directory like duplicity-full.20120922T175100Z.manifest, (name it for example *final_list.txt*)

final_list.txt :

home/username/music
home/username/file.mp3
...

Creat restore directory

$mkdir /tmp/restore

Creat bash file Restore.sh

#!/bin/bash
FILE=$1
# Read file form list 
while read line 
do
    duplicity --no-encryption --file-to-restore  "$line"  file:///media/[rest of the root to your hard_disk] /tmp/restore/"$line" 
done <"$FILE"

Restore you list

$sh Restore.sh final_list.txt

Done! and good luck :)

Related Question