Hey, trying to recover data from a machine that is decommissioned. It had a single backup with restic in the hope to recover the data later.
The backup at the time was created with backrest and a test recovery was done at the time and succeeded.
The repository was found in a locked state, I took a full backup of the repository before unlocking it.
However it appears restic does not see any snapshots in the repository. The snapshots directory on the remote server is also empty.
$ restic snapshots
enter password for repository:
repository 67511dae opened (version 2, compression level auto)
found 1 old cache directories in /home/[redacted]/.cache/restic, run `restic cache --cleanup` to remove them
The stats command states that no data is present:
$ restic stats --mode raw-data
enter password for repository:
repository 67511dae opened (version 2, compression level auto)
found 1 old cache directories in /home/[redacted]/.cache/restic, run `restic cache --cleanup` to remove them
[0:06] 100.00% 192 / 192 index files loaded
scanning...
Stats in raw-data mode:
Snapshots processed: 0
Total Size: 0 B
However the list command does confirm there’s still some data in the repository to salvage:
$ restic list index
enter password for repository:
repository 67511dae opened (version 2, compression level auto)
found 1 old cache directories in /home/[redacted]/.cache/restic, run `restic cache --cleanup` to remove them
5d4428181b9eb937893cc599e7c02ee03557ef8a2333a6ca16374ba66628c6f7
f8e3ed3f9afdcc680e55b104325ac6de649cd6eca09e88fcd2949db9eaa9cc59
a9c755cb8cdf4b2c920e783d5d932799fb39c6c00e5d33f8df318eab6c488a2a
a30e96958138c3312842c390bb60acf4bfabfb0c575b9648bdae33445b864bbe
8c586fec6ca57c77b5e840686c4f836dbde893bd776e864f7a7a459e5e6c1f99
[...]
$ restic list blobs
enter password for repository:
data 60a3d4ad2a59488caf8ba30598478353f7f7d3bf1167d8d2c584e4d3024e3cf4
data 835b2877a6c60ff46b51ffb99da938ab5e78565b2746cc7fe229e3dd1033b077
data cfd65009998a5c5630a263ff25c3067536ceaa9a53a208854bbe2bfa5618a978
data 766c6343b077a623b7bcc9afeb59c873128568d75b55d98f5d6a3125502fa3d9
data c5f8477604840e8517df73bdbc439fcb9bad15ee91d8fc6f3850efdfa586bb07
[...]
Running a check with --read-data took an hour and revealed no errors:
$ restic check --read-data
using temporary cache in /tmp/restic-check-cache-1391535769
create exclusive lock for repository
enter password for repository:
repository 67511dae opened (version 2, compression level auto)
created new cache in /tmp/restic-check-cache-1391535769
load indexes
[0:02] 100.00% 192 / 192 index files loaded
check all packs
15 additional files were found in the repo, which likely contain duplicate data.
This is non-critical, you can run `restic prune` to correct this.
check snapshots, trees and blobs
[0:00] 0 snapshots
read all data
[1:00:59] 100.00% 5534 / 5534 packs
no errors were found
Help in recovering this data would be much appreciated.
Using restic 0.17.3 compiled with go1.24rc1 on linux/amd64 from the fedora linux repositories.