Skip to content

Course

Backups & Disaster Recovery

The 3-2-1 rule done right, restore testing nobody does, RTO/RPO math, immutable backups, and what recovering at 3 AM actually looks like.

13 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

The Ground Rules

Why restores are the deliverable, how failure domains size the 3-2-1 rule, and the two numbers that drive every backup decision.

  1. 01A Backup Is Not a RestoreA green backup job means a process exited 0; only a completed restore proves a backup exists.14mOpen
  2. 02The 3-2-1 Rule, Done RightThree copies, two media, one offsite — extended into 3-2-1-1-0 by immutability and verified restores.14mOpen
  3. 03RPO and RTO Are Numbers, Not VibesRPO sizes your backup schedule and RTO sizes your restore path; both are derived from mechanism, not declared.16mOpen

How Backups Actually Work

Consistency levels, backup modes, the tools that match each engine, and the key-custody problem client-side encryption creates.

  1. 01Full, Incremental, and the Snapshot TrapDifferential vs incremental restore fan-out, content-defined dedup, and why a same-pool snapshot is not a backup.16mOpen
  2. 02Crash-Consistent vs. Application-ConsistentA file copy of a live data directory is worse than a crash; engines only self-repair when the snapshot is atomic.18mOpen
  3. 03The Tools: restic, borg, and Friendsrestic and borg for files, pgBackRest and mariabackup for databases, Litestream for SQLite — matched to engine and restore target.18mOpen
  4. 04Encrypt Backups Like They'll Be StolenClient-side encryption moves the trust boundary to the repo key, which becomes the artifact that decides whether restores are possible.14mOpen

Surviving the Real Threats

Ransomware's backup-first attack order, what offsite really means as a failure domain, and the inventory nobody writes down.

  1. 01Ransomware Deletes Your Backups FirstAttackers hunt shadow copies and Veeam before encrypting; immutability is the only property that survives credentialed compromise.16mOpen
  2. 02What 'Offsite' Actually MeansOffsite is a different failure domain — a second region in the same account is one IAM policy away from empty.14mOpen
  3. 03You Can't Restore What You Never Backed UpIaC rebuilds compute, not state; the backup inventory comes from a rebuild drill on a blank VM, not from memory.14mOpen

Restores at 3 AM

Restore verification drills, the ordered runbook with PITR and DNS traps, and what the first hour of a real incident looks like.

  1. 01The Restore Test Nobody RunsGitLab's five backup mechanisms all failed at once because none had ever been restored; drills turn hypotheses into facts.15mOpen
  2. 02The Restore RunbookDependencies first, PITR to the minute before the damage, a verification gate, then traffic — DNS TTL lowered long before the fire.18mOpen
  3. 03Disaster Recovery at 3 AMDeclare, freeze, classify, evict if hostile, restore, verify, reopen — in that order.14mOpen