Re:Encrypted Backup Shootout
by chenxiaolong on Sunday January 03, 2021 @06:15PM
(#25626207)
I tested by attempting to do a full restore to a temp directory.
[ Parent
| on HN ]
Do you remember if `restic check` said that everything was fine?
Re:Encrypted Backup Shootout
by chenxiaolong on Monday January 04, 2021 @01:26PM
(#25635698)
Unfortunately I don't remember. From the (little) notes I kept, the corruption occurred with restic version 0.9.3. I had also tried restoring with the latest code from git master, but I didn't make a note of the exact commit (it didn't make a difference anyway).
The commands that triggered the corruption were the following. I tested the restore around the 10th run of this.
repo=sftp:chenxiaolong@<ip address>:/home/restic
restic -r "${repo}" backup -x /home
restic -r "${repo}" backup -x --exclude /stuff/Android/AOSP /stuff
restic -r "${repo}" forget --keep-last 3 --prune