I use the default backup utility of ubuntu (deja-dup) in the settings panel. Today I delete by error one directory. I tried to restore it but I did not succeed. Must I restore all my backup if I only need one single directory or file ?
Thanks.
I use the default backup utility of ubuntu (deja-dup) in the settings panel. Today I delete by error one directory. I tried to restore it but I did not succeed. Must I restore all my backup if I only need one single directory or file ?
Thanks.
Of course you can do that. From the gnome DejaDup Help wiki (oh and where it says file you can also read directory)
Restore a Lost File with Déjà Dup (wiki link)
Restore a Previous Version of a File with Déjà Dup (wiki link)
Note that for Ubuntu you'll need the
ubuntuone-client
package installed in order for the menu entries to appear in Nautilus, even if you're not using Ubuntu One.Also note that Mate's version of Nautilus, Caja, does not support restoring files.
Pro Tips
You can revert files on the command line:
The above answer did not work for me as the drive that had originally been backed up had been removed. I share the procedure I followed below:
Be aware of the format "file:///..." in which duplicity expects to receive path to archive - You need to indicate the full path to the folder containing your backup.
Please note that the commands will be different for an encrypted backup. Check reference below.
Duplicity Reference
Caja user here, (Mate on 16.04.3). Problems with these solutions for me, FWIW.
"Backup" a.k.a. "deja dup" (note to developers: standardizing a name is really helpful when a newbie has to go looking for answers) won't allow me to do anything other than a full extraction of my whole backup to a location of my choosing. I just want one little directory for a malfunctioning VM...
Used Nautilus. However, it doesn't have access to the directory I need (VBox. Me: "huh?"), so no
restore
function via GUI for me.deja-dup --restore FILE1 FILE2
doesn't work. It complains:** (deja-dup:3343): CRITICAL **: deja_dup_config_location_add_volume_full: assertion 'uuid != NULL' failed
Of course, I'm assuming that FILE1 is the backup and FILE2 the restoration target. If not, I goofed.
Regardless, it just launched the GUI to deja-dup - that's a no go.
$ duplicity restore --no-encryption file:///media/b/be5f7aad-aa52-47ea-8e64-4352111f66af/home/b/'VirtualBox VMs'/'Green Machine' 'VirtualBox VMs'/'Green Machine'
A search engine of your choice will reveal others have this problem too over the years.
My work-around: "restore" everything to a 'holding folder' on my external drive via the GUI, manually go in and grab the directory I want, then zero-fill that folder.