Your laptop is stolen
Your laptop is stolen from your bag on the bus. It holds all your coursework. Is the work lost?
It is not, if you have a backup. A backup is a copy of your data, kept in another place. Businesses go further. They also plan how to get the whole system working again after a disaster.
Key words
| Word | What it means | Example |
|---|---|---|
| Backup | A copy of data kept in another place. | A copy on a cloud drive |
| Restore | To put data back from a backup. | Getting a deleted file back |
| Onsite | In the same building as the original. | A backup disk in the office |
| Offsite | In a different place, away from the original. | A copy in another city |
| Cloud backup | A copy kept on a provider's servers over the internet. | An online backup service |
| Hot site | A spare site, ready and up to date, that takes over at once. | A mirror of the data centre |
| Warm site | A spare site with equipment, but no data until it is restored. | Ready by tomorrow |
| Cold site | An empty room with power and a network link. | A room, ready in days |
| Procedure | A list of steps that gets a job done. | Steps to restore the files |
| SOP | Standard operating procedure: written steps staff follow for a task. | How to restore the files |
| Network | Computers joined to share data. | The college network |
The cells students fill in are left blank in this preview.
Where is the backup?
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Three places to keep backups
| Onsite | Offsite | Cloud | |
|---|---|---|---|
| Restore speed | Fast | Slower | Depends on the internet speed |
| Safe from fire or flood at your site? | No | Yes | Yes |
| Cost | Buy the equipment | Buy equipment and pay for transport or space | Pay as you go |
| Main risk | Lost with the original | Lost or stolen in transit | Depends on the provider and the link |
The cells students fill in are left blank in this preview.
Quick check: backups
Have a go
Quick check: backups
3 questionsExtra: The 3-2-1 rule
Tip
Keep 3 copies of your data. The original counts as one. Use 2 different kinds of storage. Keep 1 copy offsite. Then no single accident can destroy all your copies.
Extra: Make a file to protect
echo "my coursework" > homework.txtA command for the lesson’s lab terminal. It is shown here and not run.
Extra: Back it up
tar -czf backup.tar.gz homework.txtA command for the lesson’s lab terminal. It is shown here and not run.
Extra: Look inside the backup
tar -tzf backup.tar.gzA command for the lesson’s lab terminal. It is shown here and not run.
Extra: Disaster: delete the file
rm homework.txtA command for the lesson’s lab terminal. It is shown here and not run.
Extra: Recovery: restore from the backup
tar -xzf backup.tar.gzA command for the lesson’s lab terminal. It is shown here and not run.
Extra: Check the file is back
cat homework.txtA command for the lesson’s lab terminal. It is shown here and not run.
You just did a recovery
Important
You made a backup, lost the original and restored it. A business follows the same steps with far more data. It also tests its restores often. Then nobody finds out on the bad day that the backup does not work.
Hot, warm and cold sites
What if a whole building is lost? A company can keep a spare site.
A hot site is a copy of the working system, always up to date. It takes over in minutes. It costs the most.
A warm site has equipment ready, but the data must be restored from backup. It takes hours or a day.
A cold site is only a room with power and a network link. Equipment must be brought in. It takes days, but it costs the least.
The three sites compared
| Hot | Warm | Cold | |
|---|---|---|---|
| Equipment | Ready and running | Ready, not running | None, or stored |
| Data | Copied all the time | Restored from backup | Restored from backup |
| Time to recover | Minutes | Hours to a day | Days to weeks |
| Cost | Highest | Middle | Lowest |
| Good for | A bank or a hospital | A medium business | A small business that can wait |
The cells students fill in are left blank in this preview.
Which site or backup?
Have a go
Loading…
Your answers are marked here and are not kept. A college account keeps every student’s marks.
Procedures and people
A plan is useless if staff do not know it. A standard operating procedure (SOP) is a set of written steps for a job. For example: "What to do if the server fails."
People need to be ready. Staff practise the steps regularly. New staff have an induction. A new digital system comes with training. A new or changed policy comes with a briefing.
Four times staff are trained
| When | What happens | Example |
|---|---|---|
| Effective staff training | Staff practise the procedures regularly | A yearly practice of a restore |
| Induction | New staff learn the key procedures in their first days | How to report a security problem |
| A new digital system | Staff learn it before it goes live | Training on a new booking system |
| A new or updated policy | Staff are told what changed and why | A new rule for passwords |
The cells students fill in are left blank in this preview.
Put the recovery in order
Have a go
Put the recovery in order
3 questionsYour turn: choose a site
Write a function. choose_site(hours_allowed) gives back "hot" if the business can wait 1 hour or less, "warm" for up to 24 hours, and "cold" for longer. Press Run Tests to check.
def choose_site(hours_allowed):
# hours_allowed is how many hours the business can be without its system.
# Give back "hot" if it can wait 1 hour or less, "warm" for up to 24 hours,
# and "cold" for longer than that.
return ""
Make a free account to save your work, or press Start lab to work through the whole lesson.
Extra: Your turn: check the 3-2-1 rule
Write a function. follows_321(copies, media_types, offsite_copies) gives back True if there are at least 3 copies. They must be on at least 2 kinds of storage. At least 1 copy must be offsite. Otherwise it gives back False. Press Run Tests to check.
def follows_321(copies, media_types, offsite_copies):
# The 3-2-1 rule: at least 3 copies of the data, on at least 2 kinds of storage,
# with at least 1 copy offsite. Give back True or False.
return False
Make a free account to save your work, or press Start lab to work through the whole lesson.
Myth or fact?
Have a go
Myth or fact?
5 questionsFinal check
Have a go