Restore Drills for a Whole Website: Rebuild the Service, Not Just the Database
A database restore can succeed while the website remains unusable. Test files, configuration, identity, DNS and external dependencies in an isolated recovery environment.

A backup job reports success every night. During a server loss, the team restores the database and discovers that uploads, environment configuration and the certificate automation were stored only on the missing host.
A recovery drill should rebuild the service the reader uses. Verifying one archive or restoring one database is valuable, but it does not prove the website can return to operation.
Define recovery outcomes
Agree on recovery point and recovery time objectives in business terms. The recovery point describes acceptable data loss; the recovery time describes the intended time to restore useful service. Neither is a guarantee created by writing the number in a document.
List the critical journeys: opening public pages, signing in, accessing authorised files and completing any supported transaction. A recovered process that cannot complete those journeys is not a recovered service.
Decide whether a limited read-only mode is useful during recovery. That can reduce downtime, but it must be designed before an incident rather than invented around a broken database.
Inventory everything required
- Database — Restorable backup and compatible engine
- Uploaded files — Complete, consistent object or filesystem backup
- Application — Reproducible release and dependency versions
- Configuration — Controlled delivery of required values
- Secrets — Approved recovery access and rotation process
- DNS and TLS — Authority and tested renewal or issuance path
- External services — Accounts, callbacks and supported recovery settings
Keep private credentials out of the recovery runbook itself. It should describe where authorised operators obtain them, not become a second secret store.
Record which data sources must be consistent with each other. Restoring yesterday's database with last week's uploaded files can produce references to missing objects even when both restores succeed individually.
Drill in isolation
Build a disposable recovery environment that cannot send real customer messages, capture live payments or consume production queue jobs. Use test credentials and approved network restrictions.
A restored database can contain scheduled tasks and real contact information. Disable outbound side effects before starting the application, not after the first job runs. Protect the recovered data with the same access and retention discipline as production.
Avoid changing public DNS during an ordinary drill. Test through a controlled hostname or host mapping, while still exercising relevant routing and certificate behaviour.
Restore from documented inputs
Follow the runbook without relying on undocumented files from the original host. Record every manual intervention and missing assumption. The purpose is to discover what the instructions cannot currently reproduce.
Pin compatible runtime and database versions. A backup format may require specific tooling, and an application release may depend on a migration state. Do not automatically deploy the newest code over an older database without checking compatibility.
Verify backup integrity through a real restore. A checksum establishes that an archive has not changed unexpectedly; it does not establish that the archive contains a complete usable service.
Test actual journeys
Open representative pages and inspect uploaded assets. Sign in with an authorised test identity. Run the central flow using safe test input and read the result back through the interface.
Check permissions after recovery. A service that starts with overly broad temporary access is not safely restored. Verify that private files remain private and that account boundaries still hold.
Confirm background jobs and external integrations through their test modes. An empty queue can hide worker configuration failures, so submit a controlled job and observe completion.
Measure the elapsed work
Record time for provisioning, retrieving backups, restoring data, deploying configuration, verification and traffic cutover preparation. Include time waiting for access or an unavailable operator.
Compare measured results with the objectives and identify the limiting steps. A faster database restore does not help if the only DNS administrator is unreachable.
Note the actual recovered data point. The latest available backup may be older than the intended schedule because a job quietly failed or replication stopped.
Test the cutover plan separately
A production recovery needs a controlled way to redirect traffic, prevent conflicting writes and handle old workers that might return. Document how to fence the old system before the recovered system accepts authoritative work.
Do not create two live writers accidentally during a failover. Payment and queue processing require particular care because duplicate side effects can survive after traffic stabilises.
Keep rollback and incident communication plans aligned with the recovery procedure. The user-facing status should describe the available service rather than simply saying servers are online.
Close the drill properly
Remove recovered private data and revoke temporary access when the exercise ends. Fix missing dependencies in the runbook and repeat the important failed step.
A useful drill produces evidence: the service was rebuilt from controlled inputs, its critical journeys worked and the elapsed time is known. That is a much stronger promise than a folder full of backups nobody has ever used.
Paj Digital Labs
The engineering journal of Paj Digital Solutions — hosting, server infrastructure and web engineering, written by the people who run the servers.
Related reading

PostgreSQL Connection Budgets: Pooling Without Hiding the Bottleneck
More application workers can exhaust database connections long before CPU is full. Budget the whole fleet, understand pool modes and test session behaviour before adding a pooler.

TLS Certificate Renewal: Verify the Served Certificate, Not Just the Cron Job
A successful renewal command does not prove visitors see the new certificate. Trace issuance, reloads, proxy termination and external monitoring before an expiry becomes an outage.

Disk Pressure on Linux: Inodes, Deleted Files and the Cleanup You Can Defend
Free bytes are only half the story. Diagnose inode exhaustion, open deleted files and runaway logs before deleting data that merely happens to be large.