A successful backup is not enough: how to verify a restore

A backup is useful when it lets you recover the data you need. An “operation completed” message confirms one stage of the process: to know whether a service can return to operation, you also need to test restoration.

Original editorial diagram 01 / QUESTION 02 / EVIDENCE 03 / DECISION
↗ Original conceptual diagram Not a product screenshot
In this guide ⌄

This article proposes a verification method and a local lab using a small demonstration database. It is not a disaster recovery test of Row Tech's servers or a procedure to run directly against production.

Copying, integrity and operation are different checks

The NCSC's backup guidance recommends knowing how to restore and checking that the copy contains important data. It also recommends protecting copies and disconnecting external storage when it is not in use.

To apply this principle to a service, I would separate three questions: was the file transferred correctly? Can its contents be read? Does the restored application perform the operations that matter?

Check What it demonstrates What remains to be checked
Comparing hashes Equality of the compared bytes Correctness of the original data
Database check Certain structural properties Application functions
Service test Functions exercised in the scenario Cases that were not tested

Two identical files can contain the same error. Comparing hashes establishes correspondence, not functional completeness.

Choosing what needs to become available again

Before copying anything, identify what makes the service usable. A website may require files, a database, media, configuration and access to external services. Some elements should not be copied in plaintext: credentials need separate protection and an authorised recovery procedure.

Then define how much data you can afford to lose and how long the service can remain unavailable. RPO and RTO are objectives to agree on; backup frequency and test duration help assess whether the process can meet them. Writing a number in a document does not demonstrate that the objective is achievable.

A local test with invented data

DEMONSTRATION LAB

Reproducible lab: a SQLite database

The downloadable lab creates a small catalogue containing two study materials, produces a copy using SQLite's backup API and opens a separate restored database.

It checks that the expected rows are present and that PRAGMA integrity_check returns ok . To demonstrate the gap between integrity and content, it then deletes a row from the restored database: the structure remains valid, but comparison with the expected data detects the difference.

All data is local and synthetic. The lab does not read personal folders, website databases or credentials.

The SQLite documentation describes the API for creating a consistent copy of the source database. This lab does not justify replacing the required procedure for a running database with a simple file copy, especially when auxiliary files and concurrent writes are involved.

The useful result is not just the string ok : it is knowing which properties were checked and which failure the test can distinguish.

How to organise a restoration test

  1. 1

    Identify the backup, its date, contents and the access required for recovery.

  2. 2

    Prepare an isolated destination that will not overwrite the originals.

  3. 3

    Disable external effects: email, payments, webhooks and scheduled jobs.

  4. 4

    Restore using the method appropriate to the system.

  5. 5

    Check data, important functions and permissions.

  6. 6

    Record timings, missing dependencies and manual interventions.

For a website, viewing the homepage is only the beginning. A test might include reading an article, opening an attachment and using an authorised administrative function. If a function sends email, test it with an authorised test recipient rather than contacting real users.

When the process needs attention

The process needs attention if nobody knows where to retrieve copies, if access depends entirely on the failed system or if the last test omits recently added components. Even a readable copy may be unsuitable if it is too old for the agreed objective.

CHECKLIST

Check your project

0/6

With Row Tech, the discussion can start from a list of services that need to return to operation. Size the test around those services rather than presenting recovery of one file as verification of an entire infrastructure.

Download the lab

Download the demonstration lab (ZIP) . The test creates synthetic SQLite data and checks copying, restoration and missing content.

Sources and scope

Antonio Ferone

Written by

Antonio Ferone

Personal projects, technical explanations and learning experiences.

Author profile ↗

THE NEXT STEP

Apply the method to your project

For a professional project, discuss sources, constraints and responsibilities with the Row Tech team.

Talk to Row Tech ↗

Frequently asked questions

The questions that matter

Is a daily backup enough?

That depends on acceptable data loss, dependencies and recoverability. Frequency alone does not answer those questions.

Is synchronisation a backup?

It may propagate deletions and errors. Check the specific service's versioning, retention and recovery behaviour.

Does a matching hash guarantee that a database is correct?

No. It compares bytes; it does not verify that the data represents what the application needs.

Can I test on the original server?

A test may overwrite data or trigger external effects. The proposed method uses an isolated destination.

Does this lab prove my websites can be recovered?

No. It demonstrates only the checks performed on the demonstration database.

When should I repeat the test?

Follow the continuity plan and repeat after relevant changes to data, dependencies, access or backup methods.

Continue reading

Projects and technical notes

Explore projects ↗

Explore related content

Find articles, projects and resources on the same themes.