Skip to main content

Backup, restore, and teardown

Lunar Orbit · Planned

You will be able to: match a protection mechanism to a loss event, write an ordered restore, and inventory what teardown must remove.

Two quiet failures end careers. First, a backup that has run happily for a year turns out to be unrestorable on the day it is needed. Second, a test cluster is "deleted" but a load balancer, disk and snapshot keep billing for months. Both come from treating a mechanism's existence as the outcome.

Recovery is proven, not owned​

A fire drill versus a fire extinguisher on the wall: owning the equipment is not the same as knowing it works under pressure. Recovery is only proven by doing it. And leaving a rented flat means checking every room and the meters, not just locking the front door.

Start with the loss you must survive​

Different events cross different boundaries:

EventBoundary crossed
Pod replacedPod
Disk deletedVolume
Table corruptedLogical data
Zone failedFailure domain
Cluster lostCluster

Two numbers frame the goal: RPO (recovery point objective) is how much recent data you can afford to lose; RTO (recovery time objective) is how long restoration may take. A nightly backup cannot meet a five-minute RPO.

MechanismGood forLimit
ReplicaNode or process availabilityCopies bad writes instantly
Volume snapshotA fast point-in-time copyMay be crash-consistent, not application-consistent
Database backupLogical or physical data recoveryNeeds a destination and tooling
Cross-region copyA wider failure domainLag, cost and coordination

Restore is an ordered workflow​

Restoring booking needs infrastructure, credentials, database software, a compatible schema and application configuration, in the right order. Write that order down; do not rely on the memory of whoever made the backup.

Restore into an isolated destination so you do not overwrite what you are recovering. Record which backup you used, how long each step took, what data was missing, and whether the app version could read it. A backup is usable only after a representative restore and an application-level check pass.

Teardown crosses the API boundary​

Deleting a namespace may not remove a retained disk, snapshot, public address, DNS record, identity binding, log store or provider load balancer. Inventory outward:

  1. Kubernetes resources and add-ons.
  2. Nodes, disks, snapshots, load balancers.
  3. DNS records, certificates, public IPs.
  4. Provider identities, keys, trust bindings.
  5. Backups retained by policy.
  6. Billing views, to detect residue.

No provider-specific commands are claimed as tested here.

Common misconceptions​

  • "The backup job succeeded, so we're covered." Only a rehearsed restore says so.
  • "Replication is a backup." Bad writes replicate.
  • "Deleting the cluster stops the bill." Check the provider inventory.

Check yourself​

A backup job reports success nightly. Are you recoverable?

Unknown until a restore has been performed and a booking verified against the restored data.

Where this leads​

That completes the conceptual path. The capstone pulls the whole journey together around one booking.