6 / 6 · Intermediate
Backups
CISA's 3-2-1 rule asks for three copies of every important file, on two kinds of storage, with one copy kept somewhere other than your home or office.
Jump to the 9 practice questionsYou will learn
- Apply the 3-2-1 rule
- Tell sync from backup
- Keep one copy offline and test restores
Before this: Protecting personal information
1Explain
A rule first written down for photographers
The rule is older than most cloud services. Peter Krogh wrote it down for photographers in the second edition of The DAM Book in 2009. The 2012 paper written for US-CERT (now part of CISA) by Paul Ruggiero and Matthew Heckathorn took the rule to home users and businesses, and CISA still repeats the same three numbers in its current advice for small businesses.
2Explain
Three, two, one
That 2012 paper, Data Backup Options, credits Krogh's book on digital asset management and sets the rule out in three parts. Keep 3 copies of any important file: the original and two backups. Keep them on 2 different types of media, so one kind of failure cannot take out both; for example the computer's own disk and an external drive, or an external drive and online storage. Store 1 copy off site, away from your home or business, so a fire, flood or burglary does not take every copy at once.
The 3-2-1 rule from the 2012 US-CERT paper Data Backup Options, now published by CISA.
3Problem
How many copies
In the 3-2-1 rule, how many copies of an important file should you keep, counting the original?
Hint
The original and two backups.
Solution
Answer: 3
Count the original as one copy, then add two backups: one plus two makes three total copies, not three extra backups.
4Problem
The 2
What does the 2 stand for?
Hint
So one kind of failure cannot take out both.
Solution
Answer: Two different types of storage media
The 2 describes different storage media, not a schedule. Using different types reduces reliance on a single kind of failure.
5Problem
Off site
Why keep one copy off site?
Hint
Fire, flood, burglary.
Solution
Answer: So a fire, flood or burglary cannot destroy every copy
A fire, flood or burglary can affect every device at one location. Keeping a copy elsewhere separates it from that shared local risk.
6Explain
The many ways a file disappears
Files are lost in many ways: a laptop is dropped or stolen, a drive wears out, a coffee goes over the keyboard, a file is deleted by mistake, or ransomware scrambles everything. Ransomware is malware that encrypts the files on a device so that they are unusable, and its operators then demand payment for the key. More and more they also copy the data first and threaten to publish it. A good backup turns all of these from a disaster into an inconvenience.
7Explain
List what you could not replace
Start by listing what you could not replace. CISA's advice for small businesses begins with exactly that inventory, and the same works at home: photos and videos, documents such as contracts and certificates, schoolwork, and the list of accounts and recovery codes you would need after losing a device. Programs can be reinstalled; those files cannot.
8Problem
In order
Put these backup steps in a sensible order.
- Test by restoring a few files
- Set up automatic backups
- List the files you cannot lose
- Keep one copy offline or off site
Hint
Know what to save before you set anything up.
Solution
Answer:
- List the files you cannot lose
- Set up automatic backups
- Keep one copy offline or off site
- Test by restoring a few files
Know what to protect, automate it, separate a copy, then prove it works.
9Explain
Why a synced folder is not a backup
Many people assume that because their files sync to the cloud, they are backed up. CISA's ransomware guide warns that automatic cloud sync may not be enough. If files on your computer are encrypted by an attacker, the encrypted versions can sync to the cloud and overwrite the good copies. A deletion syncs the same way. A real backup keeps older versions you can go back to.
10Problem
Sync alone
Why is cloud sync alone not a backup?
Hint
Mistakes sync too.
Solution
Answer: Encrypted or deleted files sync too and can overwrite good copies
Sync can propagate deletion or ransomware-encrypted versions and overwrite good files. Recovery needs an older usable copy, not merely the latest synced state.
11Problem
Roll back
CISA advises businesses to be able to roll data back at least how many days?
days
Hint
One week.
Solution
Answer: 7 days
The guidance asks for rollback of at least seven days. Check the retained version history rather than relying on today’s sync.
12Explore
Audit a plan one question at a time
Audit a backup plan with separate questions instead of one general tick. Count the original and each backup, name the storage media, and write where every copy is kept. Then mark which copy is disconnected and how far its older versions go back. Finally choose files for a restore test. Passing the copy-count check does not automatically pass the location or recovery checks: three folders on one laptop still share the loss of that laptop.
The output is three counts: copies, kinds of media, copies away from home. 3-2-1 needs at least 3, 2 and 1.
const copies = [{ media: 'disk', where: 'home' }, { media: 'drive', where: 'home' }, { media: 'cloud', where: 'cloud' }];
const kinds = new Set(copies.map((c) => c.media)).size;
const away = copies.filter((c) => c.where !== 'home').length;
console.log(copies.length + ' ' + kinds + ' ' + away);3 3 113Problem
Which plan follows 3-2-1?
Which plan follows 3-2-1?
Hint
Count copies, kinds and places.
Solution
Answer: Laptop disk, external drive at home, online storage
Three copies, at least two kinds of media, one off site.
14Explain
Offline, encrypted, tested
Two more habits come from the same guidance. Keep at least one backup offline, for example an external drive that you plug in for the backup and then unplug. Ransomware looks for any backup it can reach and encrypts or deletes it too. Protect backups with encryption, especially ones that leave the house. And test them: a backup that has never been restored is a hope, not a plan. Every few months, pick a few files and actually restore them to make sure they open.
15Problem
One backup offline
Why should at least one backup be offline?
Hint
Ransomware hunts for what it can reach.
Solution
Answer: Ransomware hunts for reachable backups and encrypts them
Ransomware can encrypt or delete backups it can reach. Disconnecting a backup drive removes that access while it remains offline.
16Problem
Proof that it works
What is the best proof that a backup works?
Hint
Only a restore proves it.
Solution
Answer: Restoring some files and opening them
Restore a few files and open them to check that the saved data is usable. A status icon alone does not test recovery.
17Practice
Check all three parts
Finish follows321 so it checks all three parts of the rule. Hint: new Set(copies.map(c => c.media)).size counts the kinds of media. The output should be true, false, false.
true
false
falseconst planA = [{ media: 'laptop disk', where: 'home' }, { media: 'external drive', where: 'home' }, { media: 'online storage', where: 'cloud' }];
const planB = [{ media: 'laptop disk', where: 'home' }, { media: 'USB stick', where: 'home' }, { media: 'external drive', where: 'home' }, { media: 'external drive', where: 'home' }];
const planC = [{ media: 'external drive', where: 'home' }, { media: 'external drive', where: 'office' }, { media: 'external drive', where: 'home' }];
function follows321(copies) {
const three = copies.length >= 3;
// add: at least 2 kinds of media, and at least 1 copy not at home
return three;
}
console.log(follows321(planA));
console.log(follows321(planB));
console.log(follows321(planC));
Hint
Add the media check and the off-site check, then join all three with &&.
A solution
const planA = [{ media: 'laptop disk', where: 'home' }, { media: 'external drive', where: 'home' }, { media: 'online storage', where: 'cloud' }];
const planB = [{ media: 'laptop disk', where: 'home' }, { media: 'USB stick', where: 'home' }, { media: 'external drive', where: 'home' }, { media: 'external drive', where: 'home' }];
const planC = [{ media: 'external drive', where: 'home' }, { media: 'external drive', where: 'office' }, { media: 'external drive', where: 'home' }];
function follows321(copies) {
const three = copies.length >= 3;
const two = new Set(copies.map((c) => c.media)).size >= 2;
const one = copies.some((c) => c.where !== 'home');
return three && two && one;
}
console.log(follows321(planA));
console.log(follows321(planB));
console.log(follows321(planC));
18Explain
Common mistakes
"My photos sync to the cloud, so they are backed up."
Sync copies mistakes too. Encrypted or deleted files sync and can overwrite the good copies; only version history or a separate backup lets you go back, and CISA advises businesses to be able to roll back at least seven days.
"An external drive that stays plugged in is a safe backup."
Ransomware hunts for any backup it can reach and encrypts or deletes it. Plug the drive in for the backup, then unplug it.
"The backup app shows a green tick, so it works."
Only a restore proves it. Ticks prove nothing. Every few months, restore a few real files and open them.
"A laptop and two USB sticks in the same drawer follow 3-2-1."
That gives three copies on two kinds of media, but all in one place. A fire or a burglary takes everything, which is what the 1, a copy kept elsewhere, is for.
19
Summary
- 3-2-1: three copies, two kinds of media, one off site.
- Sync copies mistakes and ransomware; keep version history.
- Keep one backup offline and encrypt backups that leave home.
- Test by restoring real files every few months.