---
name: restore-drill
description: Use when the user asks to test, verify or practice restoring a backup, or asks whether a restic backup actually works. Runs a throwaway restore drill and reports the exact restic messages.
---

# Restore drill

1. Never restore over the live path. Restore to a new folder under /tmp.
2. Run `restic snapshots` and `restic ls latest` first. Use a path that ls shows.
3. Restore one file, then compare it with the original using `cmp`.
4. Read the restore summary line. "Restored 0 files" is a failure even if the exit code is 0.
5. Run `restic check --read-data` on a local repo, or `--read-data-subset=5%` on a remote one.
6. Report each command, its exact output and its exit code. Do not say "it works" without the cmp result.
