FAHADBIN SHAKIR

Loading essential experience000%

Disaster Recovery

Backups Are Not Recovery Until the Restore Is Proven

A recovery-focused method for inventory, RPO and RTO design, encrypted backups, restore drills, integrity checks, and evidence that a website can return safely.

Author: Fahad Bin Shakir · Published: · Updated: · 6 min read

Protected production data moving through verified backup and recovery stages

Introduction

A backup dashboard can show green for months while every stored copy is incomplete, encrypted with a lost key, or tied to infrastructure that no longer exists. Recovery fails at the seams: the database snapshot and uploads represent different moments, DNS credentials are unavailable, the application release cannot be rebuilt, or nobody knows which copy is safe after an intrusion. Counting completed jobs measures an activity, not the ability to restore service.

A recovery plan begins with business consequences and ends with a tested, timed restore. It defines how much data may be lost, how long the service may be unavailable, which systems and credentials are required, and how integrity will be judged before traffic returns. The process must work when the primary account, host, or team member is unavailable, because that is precisely when a real recovery is likely to occur.

Inventory the complete service and its dependencies

Map source code, built artifacts, database, user uploads, object storage, environment configuration, DNS zones, certificates, scheduled jobs, email integrations, analytics identifiers, third-party credentials, and hosting-specific routing. Label which items are reproducible from Git and a lockfile, which require a protected backup, and which must be reissued. A database dump alone cannot reconstruct a production site whose media, secrets, and domain control are missing.

Record ownership and restoration order. DNS and identity access may be needed before any other recovery step, while application configuration must exist before a restored process can start. Keep the inventory in a protected location outside the primary hosting account. Do not put live secrets in the runbook; document how an authorized operator retrieves or rotates them.

Set recovery objectives by data class

Recovery point objective defines the maximum acceptable data loss; recovery time objective defines the maximum acceptable outage. A portfolio's source code can be recreated from the latest reviewed commit, while contact submissions or newsroom updates may require a much shorter database RPO. Assign objectives to each data class rather than copying one schedule across the whole system.

The objectives determine snapshot frequency, replication, retention, transfer bandwidth, and staffing. They also expose impossible promises. A four-hour database backup cannot support a fifteen-minute RPO, and a multi-terabyte archive cannot meet a one-hour RTO without staged data or substantial transfer capacity. Measure real restore duration and revise either the architecture or the stated objective.

Create isolated, immutable, and encrypted copies

Use multiple copies on independent failure domains, with at least one protected from routine deletion or account compromise. Versioned object storage, immutable retention, or offline media can provide that boundary. Replication alone is not a backup: corruption, accidental deletion, or malicious encryption may replicate immediately. Retention should include recent points plus selected longer-term copies for slowly discovered failures.

Encrypt data in transit and at rest, restrict backup writers and restore readers separately, and log access. Protect encryption keys outside the data they unlock and test key recovery. Avoid embedding credentials in scripts or job output. A backup service with administrative access to production becomes a high-value path, so limit network reach, rotate credentials, and alert on unexpected deletion or retention changes.

Capture consistent application state

A database and filesystem captured at unrelated times can reference missing uploads or resurrect deleted media. Use database-native consistent snapshots and coordinate file capture with application writes, object versioning, or a brief controlled maintenance window. Record the application commit and schema version alongside each recovery point so the data is restored with compatible code.

For transactional databases, prefer supported dump or snapshot mechanisms and verify completion status, size, and checksums. Do not treat a copied live database directory as portable unless the engine documents that method. Include grants and required extensions without exporting unnecessary system secrets. For large sites, test incremental strategies and the full chain needed to rebuild a chosen point.

Run a clean-room restore drill

Restore into an isolated account or environment without reading configuration from the production server. Start from the runbook, obtain the selected backup and keys through approved channels, rebuild infrastructure, load data, place media, install the recorded release, and rotate test credentials. Time every stage and note undocumented decisions. A drill that depends on the live system is not proof of disaster recovery.

Validate row counts, checksums, media samples, login, permissions, background jobs, APIs, search, sitemap, redirects, and representative content. For a compromise scenario, scan the restored point and compare it with known-good source before exposing it. Keep email, payment, and webhook integrations in a safe test mode until operators deliberately enable them, preventing a restore drill from sending real messages or duplicating transactions.

Choose the recovery point and return traffic carefully

The newest copy may contain the same corruption that caused the incident. Use logs, file history, deployment records, and security evidence to identify a trustworthy point. Document the data gap and decide how to reconcile accepted writes after that point. During recovery, preserve compromised evidence rather than overwriting it with a hurried restore.

Before switching DNS or proxy traffic, verify health through the recovery environment, import final safe deltas if possible, and freeze conflicting writes. Lower DNS TTL before planned exercises but do not assume every resolver updates immediately. After cutover, monitor errors, data consistency, queue replay, outbound integrations, certificates, and user reports. Record actual RPO and RTO, then update the plan from observed gaps.

Continuously verify backup evidence between drills

A full restore exercise may run quarterly, but automated evidence should be collected for every backup. Verify that expected jobs arrived, sizes remain within a plausible range, manifests contain required components, checksums can be read, retention locks are active, and the copy exists in the independent account or region. Compare database table counts and media inventories using safe metadata rather than opening private content. Alert when volume drops unexpectedly as aggressively as when a job fails; a tiny successful archive can be more dangerous than an explicit error.

Rotate which recovery points and storage tiers are sampled so an old archive path is not assumed to work forever. Test restore credentials and key access without storing the key in monitoring. Review vendor export and account-closure procedures, because a billing or identity incident can remove access before infrastructure fails. These controls do not replace clean-room restoration, but they shorten the interval in which broken retention, expired credentials, silent truncation, or an unrecoverable encryption change can remain undetected.

Deployment checklist

  • Inventory code, data, media, configuration, domain control, credentials, and integrations.
  • Assign evidence-based RPO and RTO targets to each data class.
  • Keep encrypted copies across independent failure domains with immutable retention.
  • Record the application commit and schema version with each consistent recovery point.
  • Protect and test recovery of encryption keys outside the primary account.
  • Run timed clean-room restores without reading production configuration.
  • Validate data integrity, user journeys, jobs, redirects, and external integrations.
  • Record actual recovery performance and revise the runbook after every drill.

Related portfolio and context

Primary references

Related Engineering Notes

View all Engineering Notes