Restoring from new location does not find backup files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Fix Released
|
Critical
|
Unassigned | ||
deja-dup (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When a user tries to restore a backup on a fresh Ubuntu install, deja-dup will not be able to find their backup at first.
A workaround is to set the current backup location on the fresh install to the old backup location. But that's not at all an obvious path. A user would not normally try that.
[Test Case]
1. Back up some files to a temporary dir.
2. gsettings reset-recursively org.gnome.DejaDup
3. Try to restore from that temporary dir.
Notice that deja-dup will complain about waiting for Google Drive to be set up (even though your backup drive has nothing to do with Google).
[Regression Potential]
The proposed patch mostly affects the restore dialog. Any regressions would likely be in that flow.
[Original Report]
1. I back up my computer to my external hard drive
2. I reinstall my new distro
3. I install deja-dup and duplicity
4. I open deja-dup, and select restore
5. I select my external hard drive and the restore directory
6. Deja-dup fails with "no backup found" message and creates a new backup directory on the hard drive
This indicated to me that deja dup ignored the restore directory I entered, and instead used the default directory, which did not exist, hence restore fails because the backend is told to look in the wrong place for the backup! This seems like more a user interface issue than an issue with the backup.
Here is the workflow I had to use to restore my backup:
1. Set storage location to "local folder" and then manually navigate to the folder on my external hard drive. If I did not do this specifically, then backup would fail. Selecting the external hard drive directly as the device and entering the folder in the "folder" field also fails.
2. Select restore and again use "local folder" and manually navigate to the folder on my external hard drive. If I instead try to use the hard drive device listed and enter the backup folder in the "folder" field, the restore also fails.
This issue occurs on both Ubuntu 18.04.1 and ElementaryOS Juno.
lsb_release -d
Description: elementary OS 5.0 Juno
dpkg-query -W deja-dup duplicity
deja-dup 37.1-2fakesync1
duplicity 0.7.17-0ubuntu1
gsettings list-recursively org.gnome.DejaDup > /tmp/deja-
cat /tmp/deja-
org.gnome.DejaDup last-restore '2018-11-
org.gnome.DejaDup periodic true
org.gnome.DejaDup periodic-period 1
org.gnome.DejaDup full-backup-period 90
org.gnome.DejaDup backend 'local'
org.gnome.DejaDup last-run '2018-11-
org.gnome.DejaDup nag-check ''
org.gnome.DejaDup prompt-check '2018-11-
org.gnome.DejaDup root-prompt true
org.gnome.DejaDup include-list ['$HOME']
org.gnome.DejaDup exclude-list ['/home/
org.gnome.DejaDup last-backup ''
org.gnome.DejaDup allow-metered false
org.gnome.DejaDup delete-after 0
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
org.gnome.
summary: |
- restore from backup does not recognize backup directory + restore from backup does not recognize custom backup directories |
Changed in deja-dup: | |
status: | New → Confirmed |
tags: | added: restore |
summary: |
- restore from backup does not recognize custom backup directories + Restoring on a fresh install does not find backup files |
Changed in deja-dup: | |
status: | Confirmed → Fix Committed |
summary: |
- Restoring on a fresh install does not find backup files + Restoring from new location does not find backup files |
Changed in deja-dup: | |
status: | Fix Committed → Fix Released |
Able to confirm, working on a fix. Marking as Critical, since it prevents restoring on a fresh system (a very common restoring use case).
There is a workaround (change current backup location settings to your old backup), but it's not an obvious one.