Your backup isn't a backup until you've tested the restore
说明与用途
没有恢复测试的备份并不可靠。使用 restic 进行每月恢复演练可验证仓库完整性、凭证有效性和文件可恢复性,并提供审计证明。
问题
Backups can appear successful but may fail when actually needed because the restore process is never tested.
结果
Monthly restore tests turned a promise of backup into proven recoverability, reducing risk of data loss and providing audit evidence.
工作流
- 1. Run
restic checkto verify repository consistency. - 2. Execute
restic -r /mnt/backups/repo restore latest --target /tmp/restore-testto pull the latest snapshot into a temporary directory. - 3. Diff the restored directory against the live source (e.g.,
diff -r /tmp/restore-test /live/source). - 4. Verify file counts and sizes match.
- 5. Delete the temporary directory and log the outcome.
证据
Once a month, I restore something real from a snapshot. Not to a test directory I'll delete — to a path I actually compare against the source.
Run restic check first to confirm the repo is internally consistent, because a repo that's silently corrupt will still list snapshots happily.
The whole thing takes five minutes. The point isn't drama — it's that the skill and the credentials both still work.
- 记录日期: 2026-09-20T11:00:33.081Z