
Most SMBs back up their data and then never test the restore. The backup job turns green, the dashboard looks healthy, and everyone assumes the data is safe. Then a real incident hits — a bad deploy wipes a PVC, a node dies, a ransomware note appears — and the restore fails at 2 a.m. because nobody ever ran the drill. This guide is a practical, repeatable restore-testing routine you can run monthly in under an hour, so your backups are proven, not assumed.
Why Untested Backups Are a Liability
A backup you have never restored is a hypothesis, not a guarantee. The common failure modes are quiet: the backup captured the database volume but not the secrets; the snapshot is encrypted with a key you rotated away; the manifest references an image tag that no longer exists in the registry; or the restore simply times out because the target cluster lacks the storage class. None of these surface until you actually try to recover.
The fix is not a bigger backup budget. It is a scheduled restore drill that treats recovery as a testable workflow, exactly the way you treat deploys. If you have not built the backup layer yet, start with our Velero backup guide for SMBs and then layer the drills below on top.
Build a One-Command Restore Drill
The goal is a script that restores the latest backup into an isolated namespace, runs a smoke check, and reports pass or fail. Keep it boring and idempotent so you can run it from cron without supervision.
#!/usr/bin/env bash
set -euo pipefail
DRILL_NS="restore-drill-$(date +%Y%m%d%H%M)"
BACKUP=$(velero backup get --selector app=prod-db \
-o json | jq -r 'sort_by(.status.completionTimestamp) | last | .metadata.name')
echo "Restoring latest backup: $BACKUP into $DRILL_NS"
velero restore create "drill-$DRILL_NS" \
--from-backup "$BACKUP" \
--include-namespaces prod \
--namespace-mappings prod:"$DRILL_NS" \
--wait
# Smoke check: can we actually query the restored database?
kubectl -n "$DRILL_NS" run smoke --rm -i --restart=Never \
--image=postgres:16-alpine -- \
psql "$DATABASE_URL" -c 'SELECT count(*) FROM orders;'
# Cleanup so the drill never leaks namespaces
kubectl delete namespace "$DRILL_NS" --wait=false
velero restore delete "drill-$DRILL_NS" --confirm
Wrap it in a cron entry and alert on any non-zero exit. A green drill means the backup is real; a red one means you found the problem before your customers did.
Test the Full Recovery Path, Not Just the Database
Data is only half the story. A real recovery also needs the secrets, the ingress, the certificates, and the application config. Restore into a clean namespace and then verify the whole stack comes up:
# Restore secrets and config alongside the data
velero restore create "drill-full-$DRILL_NS" \
--from-backup "$BACKUP" \
--include-resources secrets,configmaps,deployments,services,ingress \
--namespace-mappings prod:"$DRILL_NS" --wait
# Wait for the app to become ready, then hit the health endpoint
kubectl -n "$DRILL_NS" rollout status deploy/api --timeout=180s
kubectl -n "$DRILL_NS" port-forward svc/api 8080:8080 &
sleep 5
curl -fsS http://localhost:8080/healthz || { echo "DRILL FAILED"; exit 1; }
This catches the classic gap where the database restores fine but the app cannot start because a secret was never in the backup scope. If you manage secrets with an external operator, confirm the restored namespace can actually fetch them — see our External Secrets Operator guide.
Make the Drill Part of Your On-Call Rhythm
An untested runbook is a liability, and the same is true for recovery. Schedule the drill monthly, rotate who runs it, and record the time-to-restore as a real SLO. Track two numbers: RTO (how long the restore took) and data loss window (how far back the last good backup was). If either drifts, you have a concrete signal to fix before an incident forces the issue.
- Monthly: automated namespace restore + smoke check.
- Quarterly: full-stack restore including secrets and ingress, timed.
- After every major change: re-run the drill, because a new storage class or image tag can silently break recovery.
Pair this with a written incident runbook so the person paged at 2 a.m. is following a checklist, not improvising — our sustainable incident response guide shows how to keep that runbook lean.
When the drill fails, triage in five minutes. A failed drill is a gift — it surfaces the problem while you still have time. Triage in this order: first, check whether the backup itself completed (look at velero backup describe for errors); second, confirm the target namespace has the right storage class and secrets; third, verify image tags still resolve in your registry. Most failures are one of these three, and each has a one-line fix. Log the root cause and the fix in your runbook so the next person on call does not repeat the investigation.
Start Drilling This Week
You do not need a DR product or a second cluster. A single script, a cron entry, and one hour a month turns “we think we’re covered” into “we proved we can recover.” Run the first drill this week, fix whatever it surfaces, and sleep better before the next outage.
Want help designing a restore-testing routine that fits your stack? Book a free 30-minute DevOps consultation and we’ll map your RTO, backup scope, and drill schedule together.