Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,200 of 9,200 pages
About the help in other languages
All help pages

Restore testing

For public bodies that must prove their backups work. Why a backup that was never restored is a hope, how often to test, what a restore test checks, how to record the result as evidence for auditors and continuity…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/backups-and-recovery/restore-testing.md

On this page

Restore testing

This page is for operations teams, continuity planners and auditors in public bodies who must show that backups can be restored. It answers how often to test, what a restore test checks, and how to record the result so it serves as evidence. The procedure itself is on Restoring to a test server; the hosting page is Restore and restore tests.

Contents

  1. Why test
  2. How often
  3. What a test checks
  4. Recording the result
  5. What usually goes wrong
  6. Checklist

Why test

"A backup that was never restored is a hope, not a backup" (10.9 Backups and restore). A job log that says "success" proves only that something was written. A restore test proves the backup, the procedure and the time it takes, and the time is what your recovery objective must be based on (RPO and RTO as decisions).

How often

The sources ask for a restore "on another machine at least once and after every major upgrade", and the weekly checklist asks that a recent backup "has been restored at least once on another machine" (Operating a site). Beyond that, choose a schedule that fits your continuity duties, for example:

OccasionTest
After setting up or changing the backupfull restore
After every major upgradefull restore
On a fixed schedule you decidefull restore, rotating through engines and sites
After a change of database engine or storagefull restore

What a test checks

CheckHowGood result
The site answerscurl -s -o /dev/null -w '%{http_code}\n' https://<test host>/200
The administrationopen /user/login of the administration, sign inthe dashboard
VersionSetup > System information or ./console exp:system:infothe expected release, no failed health check
Cachesphp bin/php/cache.php status --allow-root-userends in PASS
Audit trail./console exp:audit verify --allow-root-userexit status 0
Contentopen recent pages and images; publish a test itemimages load, publishing works
SQLitesqlite3 <db file> "PRAGMA integrity_check"ok
Errorstail -n 50 var/log/error.lognothing unexplained

From Restore and restore tests.

Recording the result

Keep a short report per test; it is the evidence an auditor or continuity reviewer will ask for:

FieldExample content
Date and testerdate; team name
Backup useddate and time of the backup, location
Targettest machine name
Stepsthe procedure followed, with deviations
Durationfrom start to "site answers and checks pass"
Resulteach check above, pass or fail
Follow-upfixes to the backup or procedure, with owners

Store reports with the continuity plan. A growing duration over time is a signal to act before an incident.

What usually goes wrong

  • Files restored as root that the web server cannot write.
  • A missing key file, so the audit trail cannot be verified.
  • A SQLite file copied while in use instead of taken with .backup.
  • A test copy that sends real mail or runs real cronjobs: see Restoring to a test server.
  • A backup taken from another release than the code on the test machine; restore onto the same release and composer.lock.

Checklist

  • To do: A restore test is scheduled and owned.
  • To do: Each test produces a report with its duration and results.
  • To do: Failures lead to fixes with owners and a retest.
  • To do: The recovery time in your plans is the measured one.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x