Pcornel
Linux · Backup & Restore

Restore Verification

Cheat sheet · https://pcornel.dk/topic.php?topic=2904

Back to the Topic

Answer

Restore verification proves a backup can be restored: restore to a test location, compare checksums and metadata, and start the application on the restored data.

Remember

An untested backup is a hope. Test full-system and single-file restores. Time the restore against the RTO. Check permissions, ACLs and SELinux labels after restore (restorecon -R).

First checks

  • rsync -aHAX --delete --dry-run <src> <dst> — preview a metadata-preserving sync
  • tar --acls --xattrs -czf <file> <dir> — archive with ACLs and xattrs
  • sha256sum <file> — checksum to verify copies
  • systemctl list-timers — scheduled backup jobs

Verify in this order

backup selected → restored to test target → content and metadata compared → application test → result recorded

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2904

Confirmation

Confirm action

Continue?