The 3-2-1 backup rule says to keep 3 copies of any important file (the original plus 2 backups), on 2 different types of storage media, with 1 copy stored off-site. It is the rule CISA, the US cybersecurity agency, recommends to make sure no single failure, theft, fire or mistake can destroy every copy at once.
What each number means
CISA's paper Data Backup Options states the rule like this:
- 3: keep 3 copies of any important file: 1 primary and 2 backups.
- 2: keep the files on 2 different media types "to protect against different types of hazards".
- 1: store 1 copy off-site, for example outside your home or business.
CISA's current guidance for small businesses repeats it in plainer terms: 3 copies of important files, 2 different types of storage media "like a hard drive and the cloud", and 1 copy stored away from your business location.
Each number guards against a different kind of loss:
| Part of the rule | What it protects against |
|---|---|
| 3 copies | A backup that turns out to be unreadable, incomplete or stale when you need it. With two backups, one can fail. |
| 2 media types | A failure that hits one kind of storage: a batch of drives that die the same way, a sync bug in one cloud service, a USB stick that stops mounting. |
| 1 off-site | Fire, flood, theft or a power surge that destroys everything in one building. |
What counts as a "copy" (and what doesn't)
A copy only counts if it survives the thing you're worried about. These common setups feel like backups but often aren't:
- A second folder on the same drive. CISA notes that backups on the internal drive are "just as vulnerable to damage and corruption as the primary files". If the drive dies or the laptop is stolen, both copies go.
- RAID. A mirrored or parity array survives a disk failure, but it writes deletions and corruption to every disk instantly. It's one copy. (See RAID levels explained for what it does protect against.)
- Cloud sync. OneDrive, iCloud Drive, Google Drive and Dropbox mirror your changes. The #StopRansomware Guide warns that if an attacker encrypts local files, "these files will be synced to the cloud, possibly overwriting unaffected data". Version history and recycle bins help, within their retention limits.
- A backup drive that's always plugged in. It is a real second medium, but it's in the same place as the original and reachable by anything running on the computer.
CISA also flags "rolling backups", where the backup is continually overwritten with the latest version of each file: they "can silently propagate any corruption or malware in the primary files to the backup files". Keep older versions, not only the latest one.
3-2-1 setups that actually satisfy the rule
Home user with a laptop
- Copy 1: your files on the laptop's internal SSD.
- Copy 2: an external drive, backed up with the operating system's backup tool (File History on Windows, Time Machine on macOS) and unplugged between backups.
- Copy 3: a cloud backup service, or a second external drive kept at a relative's house or at work and swapped every few weeks.
Two media types: internal SSD and external drive, plus cloud. One off-site: the cloud copy or the swapped drive. CISA's paper describes almost exactly this for home users: primary files on the computer, "with at least two backup copies on solid-state storage, optical storage (stored in jewel cases), or remote storage."
Small office with a NAS
- Copy 1: working files on the file server or NAS.
- Copy 2: a nightly backup from the NAS to a separate backup device or a second NAS in another room, with versions kept.
- Copy 3: an off-site copy, either a cloud backup with versioning or immutability, or rotated drives taken home.
The NAS's own RAID doesn't count as copy 2. The second copy must be a separate device that a mistake on the first one can't overwrite.
Developer or self-hoster
Code in a remote Git repository is one off-site copy of the code, but not of databases, uploaded files, secrets or the server configuration. Back up the database with its own dump tool, store the dump on a second medium, and send a copy off-site to storage in a different account or provider from the server itself. The #StopRansomware Guide suggests considering a multi-cloud setup for cloud-to-cloud backups "in case all accounts under the same vendor are impacted".
Ransomware changes the "1": keep one copy offline
The original rule was written for hardware failure, disasters and theft. Ransomware adds an attacker who looks for backups on purpose. The #StopRansomware Guide (CISA, MS-ISAC, NSA and FBI, October 2023) puts it first in its preparation list: "Maintain offline, encrypted backups of critical data, and regularly test the availability and integrity of backups." It explains why offline matters: most ransomware actors try to find and then delete or encrypt accessible backups, and they use stolen credentials to get into backup systems.
In practice, that means at least one copy should be one of:
- Disconnected: an external drive that's unplugged and stored away except while a backup runs.
- Immutable: cloud storage with object lock or delete protection, so even an attacker with your password can't delete it before the retention period ends. The Guide recommends enabling delete protection or object lock on storage that ransomware targets, while noting that misconfigured immutable storage "can impose significant cost".
- Separately credentialed: a backup account whose login is not stored on, or reachable from, the machines being backed up.
Encrypt the backups too. Both CISA documents recommend it, and an unencrypted backup drive that's lost or stolen is a data breach. For how ransomware spreads and what else helps, see what is ransomware.
Test the restore, not the backup
A backup job that reports "success" every night tells you it ran, not that you can get your files back. CISA's small-business guidance says to test that your team "can rapidly restore data both fully and partially" and to "perform scheduled recovery tests to verify backup integrity".
A simple restore test you can run on any OS with a SHA-256 tool:
- Before backing up, record checksums of the source files:
sha256sum * > manifest.sha256(on Windows,Get-FileHashin PowerShell does the same). - Restore the files from the backup into an empty test folder, not over the originals.
- Check the restored files against the manifest:
sha256sum -c ../manifest.sha256.
Example output where one restored file is damaged:
invoice.txt: OK
photo.jpg: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
For a one-off check of a single file, the larely checksum tool computes SHA-256 in your browser without uploading anything. Also time a full restore at least once. The arithmetic is sobering: 2 TB over a 500 Mbit/s connection is 2 × 1012 bytes × 8 ÷ 500,000,000 bit/s = 32,000 seconds, almost 9 hours, before any provider-side throttling. Better to learn that before you need it.
Common ways people break the rule
- Every copy shares one password. If one login controls the computer, the NAS and the cloud backup, one stolen password reaches all three.
- The off-site copy is months old. A drive swapped "every week" that hasn't moved since spring protects nothing you've made since.
- Only some data is covered. Photos are backed up, but the password manager vault, email archive or accounting database isn't. List what you'd need after losing the computer, then check each item is in the backup.
- Nobody knows how to restore. Write down where the backups are, how to access them, and the encryption passphrase, and keep that note somewhere other than the computer it describes.
Frequently asked questions
- Does RAID count as a backup in the 3-2-1 rule?
- No. RAID keeps a system running when a disk fails, but it copies every change, including deletions, corruption and ransomware encryption, to all disks at once. It also sits in one box in one place. A RAID array is one copy on one device, however many disks it has.
- Is cloud sync like OneDrive, iCloud Drive or Dropbox a backup?
- Not by itself. Sync mirrors changes, so a deleted or encrypted file is deleted or encrypted in the cloud too. CISA's #StopRansomware Guide warns that automated cloud backups may not be sufficient for exactly this reason. Sync services with version history help, but a separate backup with its own retention is safer.
- How often should I back up under the 3-2-1 rule?
- The rule doesn't set a frequency. Pick it by how much work you could stand to lose: if redoing a day of work is acceptable, a daily backup is enough; if not, back up more often. CISA's business guidance recommends a backup solution that runs automatically and regularly, so it doesn't depend on someone remembering.
- Who invented the 3-2-1 backup rule?
- The CISA paper Data Backup Options credits the rule to Peter Krogh's The DAM Book: Digital Asset Management for Photographers (2nd edition, O'Reilly, 2009), a book about managing photo archives. It has since become a general rule for any data.