“Backup Failed”: Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup
Emily Wong
This problem has been reported before and claimed to be fixed. I am getting the same error when backing up which causes my next automatic backup to not start.
Observations
- During backup there is a ~/.cache/deja-dup/metadata directory with only a README file
- After automatic backup the Deja-Dup application displays, “Backup Failed”: Could not restore ‘~/.cache/deja-dup/metadata’: File not found in backup"
- After the backup the metadata directory has been removed
- Problem occurs with automatic and manual backups
Setup
- Symbolic link from ~/.cache/deja-dup -> /home/backup/data/deja-dup (required because there is not enough space on the disk hosting my home directory)
- Automatic daily backups (occurs at 0200) to large 2 TByte file system (/home/backup)
Previous Report
- Bug comment from 2019-08-03 says it was fixed,
App and Version Details
apt show duplicity
- Package: duplicity
- Version: 0.8.11.1612-1
apt show deja-dup
- Package: deja-dup
- Version: 40.7-0ubuntu1
uname -a
- Linux 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
2 Answers
I had the same problem and I did these follow two steps to fix it:
1 - Remove the installed using apt and install again using snap as suggested here:
2 - Change the path where I save the backup (before: /home/user, now /home/user/bkp)
Hope that help you.
Best.
In my case I had .deja-dup-ignore right into ~/.chache so
rm ~/.cache/.deja-dup-ignoredid the job for me.