How to verify a Restic file restore
Restore a specific snapshot, then check that its contents match the file tree your recovery drill calls for. An earlier snapshot can pass Restic’s native verification and still contain older files.
Record the expected files
Capture a SHA-256 baseline of the stable source folder as it existed for the intended backup. Store the baseline outside the recovery target. Keep its digest in a trusted drill record with the full snapshot ID and the folder you intend to restore.
Restore into a fresh folder
- Run
restic -r "REPO" snapshots --jsonand find the recorded snapshot using its fullid. Runrestic -r "REPO" ls SNAPSHOT_IDand copy the folder path shown within that snapshot. - Choose a new recovery target outside the live file tree. Use a path such as
D:\Restore Drills\Test 01on Windows or/srv/restore-drills/test-01on a POSIX system. Use a separate target for each attempt. - Replace the placeholders and run
restic -r "REPO" restore "SNAPSHOT_ID:/folder" --target "NEW_TEST_DIR" --verify --overwrite never. Keep the snapshot ID and internal folder path together as one quoted argument. The chosen folder’s contents go directly into the target.
--verify checks the contents Restic wrote against the selected snapshot. Save the Restic output and record the observed duration for this step. Check the backup ID in the log before comparing the recovered file tree.
If Restic reports an error, keep the log and use a fresh target for the next attempt. Record any file comparison from the failed attempt as partial recovery evidence.
Restic’s snapshot and subfolder syntax · Full snapshot IDs in JSON
Compare with the original baseline
Compare the restored target with the baseline and digest recorded for the intended backup. The kit checks exact relative paths and file contents, including changes that keep the same file size.
In a fictional Windows rehearsal, Restic verified four files from each snapshot and both commands succeeded. The same independently captured baseline produced two different results.
Check what changed on a retest
Keep both evidence ZIPs and record each SHA-256 separately. Compare the saved checks using those digests and the original baseline and its recorded digest.
The retest report shows which earlier findings cleared, which remain and which are still unconfirmed because the retest could not check those paths. It also shows new differences and newly unverified files.
Give the client the browser summary
Run export-summary with the evidence ZIP’s recorded SHA-256. Choose a new HTML filename so the first check and retest are easy to distinguish. Read the labels before handing the HTML to the client, or print it to PDF.
Keep the evidence ZIPs, baseline digest and provider restore logs in the restricted drill record. Check permissions and application startup separately when the recovery scope includes them.