What is the first question to ask about a backup?
Not "do we have one?" The useful questions are two numbers.
How much recent work can we afford to lose? If the answer is "a day's", a nightly backup is adequate. If it is "ten minutes'", it is not. This figure is called the recovery point objective.
How long can we manage without the system? An hour, a day, a week. This is the recovery time objective.
They are business decisions, not technical ones, and they differ by system. A firm might tolerate losing a week of its marketing image library and four hours of orders. Setting the two numbers for each important system, in writing, is the start of every sound plan.
How do the numbers shape the design?
The recovery point sets how often backups must be taken. The recovery time sets how fast a restore must be, and that governs where the backups are kept and in what form.
They pull against cost. A nightly copy to cheap storage is inexpensive, and it means up to a day's loss and perhaps days to restore. Continuous replication to a standby system gives seconds of loss and minutes of downtime, at many times the price.
A common mistake is to buy for one number and forget the other. Hourly backups to a distant archive satisfy a tight recovery point. If retrieving 4 terabytes over the available connection takes five days, the recovery time is five days, whatever the plan says.
How likely is it that storage fails?
More likely than people assume, and the figures are public.
A cloud storage company called Backblaze has published the failure rates of the drives in its data centres every quarter since 2013, covering several hundred thousand drives. Its annualised failure rate across all models has generally been between 1 and 2 per cent. Individual models have ranged from a small fraction of a per cent to well over 10.
So a single hard drive has, very roughly, one chance in seventy of failing in any given year. Over five years that accumulates to something like 7 per cent. A study by Google of its own drives, published in 2007, found comparable rates, and found that failures were hard to predict from the drives' own health indicators.
Solid-state drives fail less often mechanically and are not immune. All storage media degrade. Recordable discs, tapes and flash memory left unpowered each have their own modes of decay.
If I keep two copies, how safe am I?
If the two failed independently, extremely safe. With each drive at about 1.5 per cent a year, the chance of both failing in the same week is tiny.
The trouble is the word "independently". Copies fail together far more often than the arithmetic suggests, because the causes are shared.
- Same batch. Drives bought together, from one production run, tend to wear out together.
- Same machine. A power surge, a failed controller or a software fault destroys every disk in the enclosure.
- Same building. Fire, flood and theft take everything on the premises.
- Same account. One compromised password reaches the data and its backup.
- Same mistake. A file deleted or corrupted is faithfully deleted or corrupted in a synchronised copy within seconds.
That last point catches many people. Mirrored disks and file synchronisation services are not backups. They protect against a failed drive. They replicate human error, software faults and malicious encryption instantly.
What is the 3-2-1 rule?
A piece of practical advice, attributed to the photographer Peter Krogh, that deals with shared causes.
- 3 copies of the data: the original and two backups.
- 2 different kinds of storage, so that one type of failure does not take both.
- 1 copy off-site, so that one event at one location does not take everything.
It has been extended in recent years to 3-2-1-1-0: one further copy that is offline or cannot be altered, and zero errors when the backups are verified.
Why the extra copy that cannot be altered?
Because of ransomware. An attacker who has gained control of a network now routinely seeks out the backups and deletes or encrypts them before triggering the main attack. Reports from firms that handle such incidents have found that attackers attempt this in the great majority of cases, and that organisations whose backups were compromised were far more likely to pay.
A backup that an administrator can delete can also be deleted by an attacker using that administrator's account.
Two defences exist. An offline copy is physically disconnected: a tape on a shelf, a drive unplugged and stored elsewhere. An immutable copy is held in storage configured so that, for a set period, nothing can modify or delete it, even with full administrative rights. Most cloud storage services offer this.
How many versions should be kept?
More than one, and going back further than seems necessary.
Corruption and intrusions are often discovered late. If a database began silently corrupting records three weeks ago, or an attacker has been in the network for a month, and only seven daily copies exist, every one of them contains the problem.
A long-established rotation keeps daily copies for a week or two, weekly copies for a month or two, and monthly copies for a year. It is sometimes called grandfather-father-son. Incremental methods, which store only what has changed, make this affordable.
What does "a backup you have not restored" mean?
It is a saying in the trade: a backup that has never been restored is only a hope. Backups fail quietly, and the failures show only on restore.
Typical findings when a restore is finally attempted:
- The job had been reporting success while saving nothing, because a path changed.
- The files are there and the database inside them is inconsistent, having been copied while in use.
- The encryption key for the backup was stored on the server that was lost.
- The software version needed to read the backup no longer runs.
- The data is intact, and nobody knows how to rebuild the server it belongs on.
- Everything works, and takes four times as long as anyone assumed.
A widely discussed incident in 2017 illustrates the point. An engineer at a company providing a code-hosting service accidentally deleted a production database. The company had five separate backup and replication mechanisms. In its own published account, it reported that none had been working properly. It recovered from a copy an engineer happened to have made by hand six hours earlier.
How should restores be tested?
At three levels, on a schedule.
File level, monthly. Pick a few files at random, restore them and open them. This takes minutes and catches most silent failures.
System level, quarterly. Restore a whole server or database to a spare environment. Start it. Check that the application runs and that the data is current. Time it from start to finish.
Full exercise, yearly. Assume the main site is gone. Rebuild the essential systems from the backups and the documentation alone, with the people who would actually have to do it. Compare the time taken with the recovery time objective.
Write down what happened each time. The time measured in a test is your real recovery time, and the figure in the policy document is only an intention.
How is restore time estimated beforehand?
By arithmetic that is rarely done. Divide the amount of data by the speed at which it can actually be read and transferred.
| Data | Over 100 megabits a second | Over 1 gigabit a second |
|---|---|---|
| 100 GB | about 2.5 hours | about 15 minutes |
| 1 TB | about 1 day | about 2.5 hours |
| 10 TB | about 10 days | about 1 day |
These are ideal figures. Real restores are slower, since the storage must also write the data, databases must be replayed and systems reconfigured. If a restore from the cloud would take ten days and the business can stand two, a local copy is needed as well, or the provider's service for shipping data on physical drives.
What is commonly forgotten?
- Data held in online services. Email, documents and business records kept with a software provider are, under most terms of service, the customer's responsibility to back up. The provider protects against its own failures. It does not protect against your deletions, beyond a limited retention period.
- Configuration. The settings of firewalls, switches and applications. Rebuilding these from memory can take longer than restoring the data.
- Credentials and keys. Including the key to the backups themselves, stored somewhere that survives the loss.
- Laptops and phones.
- The instructions. A written procedure, kept where it can be reached when the network is down. A printed copy has its uses.
What does a sound small-scale arrangement look like?
For a small office:
- Working data on a server or storage device with redundant disks.
- An automatic nightly backup to a separate device on site, with versions kept for thirty days.
- An automatic daily copy to a cloud service, encrypted, with immutability switched on and versions kept for a year.
- A separate account for the backup service, with its own password and second factor, used for nothing else.
- Backups of the online email and document service through a third-party tool.
- A monthly file restore, a quarterly system restore, and the results written down.
For a household: the computer, an external drive that is plugged in weekly and otherwise kept disconnected, and a cloud backup service that keeps versions.
Is there a single most important point?
That the measure of a backup is the restore. A plan should state how much may be lost and how long recovery may take, and those two figures should have been checked by actually restoring. The code-hosting company mentioned above had five mechanisms and had tested none of them.



