Cybersecurity

Database recovery: prove that a backup works

Select a backup and record its engine, version, time, decryption key reference and checksum. Compare its hash with a trusted manifest before importing.

Data and recovery Author · iulian@iptest.ro ·
Editorial date · 2026-03-12

Visual example for: Database recovery: prove that a backup works
  1. Select a backup and record its engine, version, time, decryption key reference and checksum. Compare its hash with a trusted manifest before importing.
  2. Restore to a separate instance with isolated networking and test accounts. Double-check the destination. For a MariaDB physical backup, follow the prepare step and use an empty data directory dedicated to testing.
  3. Check schema, critical tables, row counts against expected values and relationships. Start the test application and run a sign-in and a dummy transaction.
  4. Negative scenario: alter only a test copy and confirm that the checksum check rejects it. Then simulate the newest backup being unavailable and try an older one. Record data loss and recovery time.
  5. Keep a record of the backup used, results, test evidence and approver. An import without errors does not prove the application works.
  6. The editorial example was checked using synthetic SQLite data: the backup was imported into an isolated database, integrity and two control values passed, and an altered copy failed the hash check. Repeat with your own engine and backups.

Official documentation

All guides