Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

8.3 (3 of 5): Backups, updates and air gaps

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

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

WordWhat it meansExample
BackupA copy of data kept in case the original is lost.photos saved to the cloud
Full backupA copy of everything.every file, every time
Incremental backupA copy of only what changed since the last backup of any kind.just today's new files
Differential backupA copy of everything that changed since the last FULL backup.all changes since Sunday
RestoreTo put data back from a backup.copy the photos back
OffsiteKept in a different place from the original.a copy in another town
Air gapA computer or copy with no connection to any network (linked computers).a disk in a locked drawer
RansomwareHarmful software that locks your files and demands money.a note that says pay us
EncryptTo scramble data so only people with the key can read it.a locked backup
FirmwareSoftware built into a device.the code inside a router
DriverSoftware 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Three kinds of backup

TypeWhat it copiesTime to make itSpace it needsTime to restore
FullEverythingLongestMostFastest: one piece
IncrementalChanges since the last backupShortestLeastSlowest: many pieces
DifferentialChanges since the last full backupMedium, and it grows each dayMediumFast: two pieces

The cells students fill in are left blank in this preview.

Worked example: a week of backups

NightFull each nightIncrementalDifferential
Sunday (full backup: 100 files)100100100
Monday (10 files changed)1001010
Tuesday (10 more changed)1001020 (Monday plus Tuesday)
Wednesday (10 more changed)1001030 (all three days)
To restore on Thursday you need1 piece4 pieces: Sunday, Mon, Tue, Wed2 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.

Code: python
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.

Code: python
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

UpdateExampleBenefitDrawback
SoftwareA new version of the operating systemFixes security weak pointsA restart. It may break an old program
FirmwareNew code for a router (the box that connects you to the internet)Fixes weak points built into the deviceIf it stops in the middle, the device can break
DriverA new graphics or printer driverFixes weak points and bugsA 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

An 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Key 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 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Remember

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.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.