Your phone falls in the sea
Your phone falls into the sea. It is gone.
What do you miss most? The phone, or the photos? You can buy a new phone. You cannot buy back the photos.
A company has the same problem, with data worth millions. The answer is a copy kept somewhere safe.
Key words
| Word | What it means | Example |
|---|---|---|
| Backup | A copy of data kept in case the original is lost. | photos saved to the cloud |
| Full backup | A copy of everything. | every file, every time |
| Incremental backup | A copy of only what changed since the last backup of any kind. | just today's new files |
| Differential backup | A copy of everything that changed since the last FULL backup. | all changes since Sunday |
| Restore | To put data back from a backup. | copy the photos back |
| Offsite | Kept in a different place from the original. | a copy in another town |
| Air gap | A computer or copy with no connection to any network (linked computers). | a disk in a locked drawer |
| Ransomware | Harmful software that locks your files and demands money. | a note that says pay us |
| Encrypt | To scramble data so only people with the key can read it. | a locked backup |
| Firmware | Software built into a device. | the code inside a router |
| Driver | Software that lets the computer talk to a device. | a printer driver |
The cells students fill in are left blank in this preview.
Quick check: which backup?
Have a go
Quick check: which backup?
3 questionsThree kinds of backup
| Type | What it copies | Time to make it | Space it needs | Time to restore |
|---|---|---|---|---|
| Full | Everything | Longest | Most | Fastest: one piece |
| Incremental | Changes since the last backup | Shortest | Least | Slowest: many pieces |
| Differential | Changes since the last full backup | Medium, and it grows each day | Medium | Fast: two pieces |
The cells students fill in are left blank in this preview.
Worked example: a week of backups
| Night | Full each night | Incremental | Differential |
|---|---|---|---|
| Sunday (full backup: 100 files) | 100 | 100 | 100 |
| Monday (10 files changed) | 100 | 10 | 10 |
| Tuesday (10 more changed) | 100 | 10 | 20 (Monday plus Tuesday) |
| Wednesday (10 more changed) | 100 | 10 | 30 (all three days) |
| To restore on Thursday you need | 1 piece | 4 pieces: Sunday, Mon, Tue, Wed | 2 pieces: Sunday and Wednesday |
The cells students fill in are left blank in this preview.
Match the situation to the backup
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Keep one copy away, locked and encrypted
Important
Keep at least one copy offsite, so one fire or one thief cannot take every copy. Lock the copies away and encrypt them, so a stolen copy cannot be read.
Your turn: work out the backups
Work out backup sizes and restore steps. The first function gives the size of one night's backup. The second says how many pieces you need to restore. Press Run Tests.
def night_size(kind, full_size, changed_per_day, night):
# A full backup was taken on night 0. This is the size of the backup taken on night 1, 2, 3 ...
# "full": a whole new copy every night.
# "incremental": only what changed since the night before.
# "differential": everything that changed since the full backup on night 0.
return 0
def pieces_to_restore(kind, night):
# How many backups must be put back to restore the system after night number night (1 or more)?
# "full": 1. "incremental": the full backup plus every night. "differential": the full backup plus the last night.
return 0
Make a free account to save your work, or press Start lab to work through the whole lesson.
Extra: The 3-2-1 rule
Tip
Keep 3 copies of your data. Keep them on 2 kinds of storage, such as a disk and the cloud. Keep 1 copy offsite. Then a fire, a thief or a virus cannot take every copy.
Extra: Your turn: check the 3-2-1 rule
Write a function that checks a backup plan against the 3-2-1 rule. It is given the number of copies, the kinds of storage and the copies kept offsite. Press Run Tests.
def follows_321(copies, kinds_of_storage, offsite_copies):
# The 3-2-1 rule: at least 3 copies, on at least 2 kinds of storage, with at least 1 copy offsite.
# Return True if the plan follows the rule, and False if it does not.
return None
Make a free account to save your work, or press Start lab to work through the whole lesson.
Updates fix weak points
Makers find weak points and write fixes. A fix arrives as an update. An update you do not install leaves a weak point open.
There are three kinds.
Software updates are for programs and the operating system (the main software of a computer). Firmware updates are for the code inside devices. Driver updates are for the code that lets a computer talk to a device.
Updates: why, and the catch
| Update | Example | Benefit | Drawback |
|---|---|---|---|
| Software | A new version of the operating system | Fixes security weak points | A restart. It may break an old program |
| Firmware | New code for a router (the box that connects you to the internet) | Fixes weak points built into the device | If it stops in the middle, the device can break |
| Driver | A new graphics or printer driver | Fixes weak points and bugs | A bad driver can make the computer stop |
The cells students fill in are left blank in this preview.
Quick check: update safely
Have a go
Quick check: update safely
3 questionsAn air gap keeps network attackers out
An air gap means a computer is not connected to any network. There is "air" between it and the internet.
This protects very secret systems and the last copy of a backup. An attacker cannot reach it over the internet.
The drawbacks: it is slow to use, and data still has to be moved by hand, for example on a USB stick. That stick can carry malware (harmful software) in.
Scenario: what went wrong?
Have a go
Scenario: what went wrong?
4 questionsKey words crossword
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Final check
Have a go
Final check
5 questionsRemember
Important
Back up with a plan: full, incremental or differential, with a copy kept offsite. Test your restores. Install updates for software, firmware and drivers. Use an air gap for the most important copies.