Skip to content

Lesson 2 of 13 · 14m

The 3-2-1 Rule, Done Right

Three copies, two media, one offsite — extended into 3-2-1-1-0 by immutability and verified restores.

Data does not die randomly. It dies in correlated clusters: one disk, one host, one fat-fingered rm, one stolen credential set, one building. The 3-2-1 rule exists because each leg of it counters a different failure class — and it only works if each leg is literally true, which is where most implementations quietly fail.

What the legs actually mean

Three copies. Two different media. One offsite. Read it as failure-domain accounting:

  • 3 copies survives the loss of any one artifact — including silent corruption of exactly one of them, which is the failure nobody models until a restore produces a checksum mismatch.
  • 2 media survives the failure mode of one medium: a dead SSD and a dead object-store bucket do not share a mechanism. In practice "media" usually resolves to "different storage systems," not literally tape-and-disk.
  • 1 offsite survives the site: the rack, the room, the datacenter, the region.

Three is also the quorum count, not just belt-and-suspenders: with two copies and a checksum mismatch at restore time there is no adjudicating which artifact rotted — a bit-rotted primary and a good replica disagree symmetrically. The third copy is the tiebreaker, and the independence requirement is what makes it a tiebreaker instead of a second victim: two copies tended by the same buggy job corrupt in the same way, same bytes flipped, no quorum possible.

Veeam extended this to 3-2-1-1-0, and the extension is the part that matters now: one copy offline, air-gapped, or immutable — something an attacker holding your admin credentials cannot delete — and zero errors on recovery verification. The "0" converts the whole rule from an inventory claim into a tested property.

Where the rule actually fails

The mental model that breaks is counting files instead of counting failure domains. Two rsync targets on two disks in the same RAID enclosure are not two independent copies; the controller is the failure domain and both copies ride it. A nightly pg_dump and a ZFS snapshot in the same pool share the pool's death. The sneakiest version is the same host with two paths: /var/lib/backups/ and /srv/backups/ on one root filesystem are one copy. Most commonly: the production data and its "offsite" backup live in the same cloud account, reachable with the same IAM credentials. That is one failure domain wearing a second region's hat.

The canonical proof is Code Spaces, June 2014. An attacker gained access to the company's AWS console, demanded ransom, and when the company tried to regain control, deleted everything — EC2 instances, EBS volumes, S3 buckets, and every backup and snapshot, all inside one account. The company announced it was out of business within days. Their backups were offsite in the geographic sense and perfectly onsite in the credential sense. The blast radius was the account, not the region.

Auditing the rule against reality

Run each leg as a question about survival, not location:

  • If this disk dies, which copy survives? If this host is rooted and destroy-ed, which copy survives? If this account's root key leaks, which copy survives? If this provider turns us off, which copy survives?
  • "Different medium" should resolve to different storage systems — the database's own backup repository plus object storage plus a disk image beats three files on the same array. A local NAS plus an S3 bucket plus a borg repo at a second provider is a real three-leg answer for self-hosted infrastructure; three paths on the same RAID is not.
  • The offsite copy must live under an identity root your deploy credentials cannot reach. A second region in the same account survives the region. It does not survive the account.
  • The "1" in 3-2-1-1-0 means immutable or unreachable: S3 Object Lock in compliance mode, an append-only repository, or actual tape.
  • The "0" means a restore verification that returns errors gets paged like an outage — not logged and forgotten.

Count failure domains, assign one leg to each, and make the zero-error condition a monitor, not a hope.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.