Back-ups and recovery
Overview
Teaching: 25 min
Exercises: 50 minQuestions
Why are automated backups important?
How do I make a backup plan?
Objectives
Learn who to ask for help
Know what the back up systems are
The first rule of backups
It is not a backup until you have restored from it. – Brian Ballsun-Stanton
What is a sync client?
A sync client is, “[A] continuous file synchronization program. It synchronizes files between two or more computers in real time…” (Syncthing 2020)[https://syncthing.net/]
- Keeps a local and remote copy up to date
- Designed for easy migration between computers, (i.e. work and home)
- Always on, presumes internet
- Does not provide versioning to a reliable level.
What is a Backup client?
- Not designed to share data
- No risk of “overwriting” local data accidentally.
- Can capture all files, or the latest changes in files
- Keeps controllable versions with a specific retention policy. (Are there legal lengths which must be obeyed? Are there risks for keeping longer?)
- Designed to run automatically, but not continously.
- If a cloud service, encrypts your data such that they cannot access it?
Challenge: Common clients (10 minutes)
Add comments in the shared document.
- Is Dropbox a backup client?
Solution
No. It can overwrite your local files, shares file data at its discretion to “Dropbox uses certain trusted third parties (for example, providers of customer support and IT services) to help us provide, improve, protect, and promote our Services.” (Wired)[https://www.wired.com/story/dropbox-sharing-data-study-ethics/], is not liable for data loss, and saves versions up to 30 days only.
- Is OneDrive a backup client?
Solution
This is a trick question. The OneDrive sync client is not a backup, because it can overwrite local files on your computer. While Micrsoft advertises OneDrive as a backup client, with the backup your folders option, it looks like this option is syncing, rather than creating backups (See backblaze’s discussion of differences and the discussion inside microsoft’s answers site. But you only have 3-30 days to recover deleted files in standard accounts, which makes this not a backup.
Sync clients and backup clients solve different problems, and with some care, there’s no problem running both.
The 3-2-1 Rule
When storing data, follow the 3-2-1 rule:
Keep 3 copies of your files in 2 different locations, with 1 copy in a location in another geographic area
Master copy: Keep at secure location
Working copy: Keep on a reliable/safe device or locations
Back up copy: Keep off-site
Challenge - Why have a 3-2-1 strategy? (10 minutes)
What could possibly go wrong? Write your answers in the shared document.
How to make a backup plan
- What do you want to protect? Where is it?
- Articulate risks
- Examples:
- Formally:
- What is the cost of replacing all or part of the data?
- What is the cost of a data breach?
- Where is the data stored and what can happen at each place where the data lives?
- Multiply the cost of the above by the odds of failure.
- 1-3% a year for a hard drive failing
- Odds of fire, workplace theft, etc. (This rabbit hole can go as deep as you like.) Mean fire experience probability says “The mean annual probability of having a fire experience whilst an adult was .0125.”
- Your budget for your backups should be lower than the odds of the thing occuring times the cost of fixing it.
- Find automatic services for your 3-2-1 strategy
- The more you have to do manually, the less the odds of a backup being performed during stressful or busy times.
- Most important backup is the offsite backup. Find a service or program that can offer versions and deleted files out to the entire history of your backup. Make sure it runs automatically on all of your computers.
- Backups’ backup, in case your online account is compromised is your local backup. Figure out what high-relability media you will be using (a USB flash drive is not reliable, external hard disks are adequate for the purpose) and how you can semi-automate backups.
- Figure out your test strategy.
- Backups which haven’t been tested are not backups
- No, really
- Restoring from a historical version of your backups: “I want last tuesday’s version of this document” is a great way to know that the entire system is working.
- Document what you need to do to backup and to restore data, using a checklist. Assume you will be panicked and not remembering anything when you really need to restore data.
Challenge - Backup Plan (30 minutes)
Group: Make, document, and share a backup plan. Use a variety of resources and share those too. Think, pair, share
Key Points
Automated backups can reduce the time and money costs of things going badly.
A backup plan should be in response to your data’s sensitivity and difficulty of collection. It should address risks and mitigations of those risks. It should cost less than being hit by the thing you are defending against.