Backups: what is copied and where it is kept
A backup is a second copy of data, made at a known time and kept apart from the original, so that the data can be put back after a loss. Two choices decide whether it works on the day: what each night's copy contains, and where the copies are kept. No technical background is assumed. A security professional needs both, because a backup that is too old, too slow to restore or stored beside the original fails at the moment it is needed.
By the end of this unit you will be able to:
- Explain what full, incremental and differential backups copy and how each treats the archive bit
- Work out which backup sets a restore needs
- Tell apart onsite, offsite and cloud storage, and state the 3-2-1 rule
- Explain what immutable and encrypted backups protect against
- Tell apart electronic vaulting, remote journaling and remote mirroring
A copy every night, on the same desk
An illustrative example
A florist keeps its orders and accounts on one office computer. Every evening the owner copies the files to a portable drive. The drive stays plugged in on the desk so that she never forgets.
One night an electrical fault starts a small fire under the desk. The computer and the drive are both destroyed. The shop has eleven weddings booked for June and no record of what any couple ordered.
The owner made a copy every night. What two things about her copy made it useless?
Full, incremental and differential backups
A backup is a copy of data made at a known time so that the data can be restored after loss or damage. Copying everything every night is the simplest method and the slowest. Two shorter methods copy only what has changed.
The computer keeps a marker on every file called the archive bit. The bit is switched on whenever the file is created or changed. It tells backup software that this file has changed since it was last backed up.
| Type | What it copies | Archive bit afterwards | Sets a full restore needs | Time to back up | Time to restore |
|---|---|---|---|---|---|
| Full | Every file | Switched off | The last full backup | Longest | Shortest |
| Incremental | Files changed since the last full or incremental backup | Switched off | The last full, then every incremental since, in order | Shortest | Longest |
| Differential | Files changed since the last full backup | Left on | The last full, then the latest differential | Grows each night | Middle |
A differential leaves the bit on. The next differential therefore copies the same files again, together with anything newer. Each night's differential is larger than the last, until the next full backup switches every bit off.
Common misconception
“A differential backup copies what changed since yesterday's backup.”
That is an incremental. A differential copies everything changed since the last full backup, however many nights ago that was. This is why one differential is enough to bring a full backup up to date.
A snapshot is a copy of data as it stood at one moment, usually made inside the storage equipment in seconds. It is handy for undoing a mistake. A snapshot kept on the same equipment as the original is lost with it.
One week on three schedules
| Night | Full every night | Sunday full, then incrementals | Sunday full, then differentials |
|---|---|---|---|
| Sunday | Everything | Everything | Everything |
| Monday | Everything | Monday's changes | Monday's changes |
| Tuesday | Everything | Tuesday's changes | Monday's and Tuesday's changes |
| Wednesday | Everything | Wednesday's changes | Monday's to Wednesday's changes |
| Restore on Thursday | Wednesday's tape: 1 set | Sunday, Monday, Tuesday, Wednesday: 4 sets | Sunday and Wednesday: 2 sets |
The incremental schedule writes the least each night and asks the most of a restore. Its sets must be loaded in order, and one unreadable set in the middle stops the restore at that point.
The differential schedule needs two sets however late in the week the failure comes. A damaged Tuesday differential does no harm, because Wednesday's holds the same files and more.
Incremental: quick to make, slow to restore, one set for every night. Differential: slower to make, quick to restore, always two sets.
Onsite, offsite and cloud storage, and the 3-2-1 rule
| Where | Good for | Weakness |
|---|---|---|
| Onsite: in the same building | The fastest restore of a deleted file or a failed disk | Lost in the same fire, flood or theft as the original |
| Offsite: at another location | Surviving the loss of the building | Slower to fetch. Must be moved and stored securely |
| Cloud: a provider's storage, reached over the internet | An offsite copy with no transport and as much space as needed | Restore speed depends on the network link, and the data is in a provider's hands |
The 3-2-1 rule combines them: keep 3 copies of important data, the original and two backups, on 2 different types of media, with 1 copy offsite.
An offsite store is chosen far enough away that the event which destroys the building cannot reach it. It is also near enough, and open for long enough hours, for copies to be fetched within the . The RTO is the time allowed to get a system running again.
Copies an attacker cannot change or read
Ransomware is a program that scrambles an organisation's files so that criminals can demand payment for unscrambling them. It looks for the backups first, because an organisation with good backups has no need to pay.
An immutable backup is a copy that cannot be altered or deleted for a set period, even by an administrator. An offline backup, such as a tape on a shelf, is connected to no network, so an intruder on the network cannot reach it. Either gives a copy that survives an attacker who has taken control of the live systems.
An encrypted backup is scrambled so that a person who steals the tape, or breaks into the cloud store, cannot read it. Its keys are kept apart from the backups and must themselves be recoverable. A backup whose only key burned in the same fire cannot be read by its owner either.
The two protections answer different threats. Immutability protects the backup from being destroyed. protects it from being read.
Sending copies by wire: vaulting, journaling, mirroring
Carrying tapes to a store limits the offsite copy to about once a day. Three methods send data to another site over a network link instead. Each loses less data than the one before it and costs more.
| Method | What is sent | When | Data lost in a disaster |
|---|---|---|---|
| Electronic vaulting | Whole backup files, in bulk | In batches, such as nightly | Everything since the last batch |
| Remote journaling | The transaction log: the running list of each change made to a database | Frequently, in small pieces | The last few minutes |
| Remote mirroring | Every change, to a live duplicate of the data | As each change is made | Little or none |
Mirroring is synchronous when a change is not confirmed to the user until both sites have stored it. Nothing is lost, and every action waits for the distant site. It is asynchronous when the change is confirmed once the first site has stored it and is passed on moments later. That is faster, and the last moments of work can be lost.
Common misconception
“Data that is mirrored to a second site is backed up.”
A mirror copies every change at once, including a mistaken deletion and files being scrambled by ransomware. Only a backup from an earlier point in time lets an organisation go back to before the damage.
Rotating media, and proving a restore
Backup media are reused in a planned cycle called a rotation scheme, so that copies from several points in the past are always available.
The best known scheme is grandfather-father-son. Daily backups are the sons, weekly backups are the fathers and monthly backups are the grandfathers. Sons are overwritten soonest and grandfathers are kept longest. A fault that went unnoticed for three weeks can still be undone from a father.
Two other schemes have names. Tower of Hanoi uses sets at doubling intervals: one set every second day, the next every fourth day, the next every eighth. A few tapes then reach far back in time. The six-cartridge weekly scheme uses a tape for each of Monday to Thursday and two Friday tapes used in turn.
How long each generation is kept follows the organisation's rules on keeping records. Every tape or disk that leaves the building is labelled, logged and carried securely, so that the right one can be found in an emergency.
A backup is unproven until data has been restored from it. Test restores are run on a schedule, on equipment like that at the . The time each one takes is compared with the RTO.
Worked example: The server fails on Thursday morning
A file server is backed up to tape every night. A full backup ran on Sunday night. Files were changed on Monday, Tuesday and Wednesday. At 10:00 on Thursday the server's disk fails.
- Under a full backup every night: load Wednesday night's tape. One set, and the restore is finished.
- Under Sunday full with incrementals: load Sunday's full, then Monday's, Tuesday's and Wednesday's incrementals in that order. Four sets.
- Under Sunday full with differentials: load Sunday's full, then Wednesday's differential, which holds every change since Sunday. Two sets.
- In all three cases the work done on Thursday morning is lost, because the last backup ran on Wednesday night.
The three schedules lose the same data and differ in effort: one, four and two sets. Had the failure come on Saturday morning, the incremental restore would need six sets and the differential restore still two.
A question, worked through
A veterinary group backs up its records server to tape. A full backup takes nine hours, and only the Sunday closure allows that long. On weeknights three hours are available, and one day's changes take about twenty minutes to copy. Last year a restore failed because one tape of seven could not be read, so the practice manager wants a restore to need as few tapes as possible. The copies must also survive the loss of the server room.
Which backup schedule BEST meets these needs?
Decide on your answer, then open the reasoning
- The question sets three tests: the weeknight backup must fit in three hours, a restore must use few tapes, and the copies must survive the loss of the room.
- Rule out a: a full backup takes nine hours and weeknights allow three.
- Rule out d: snapshots kept on the server are lost with the server room, whatever else they offer.
- Between b and c: both fit the weeknight window. Incrementals take twenty minutes a night, and a restore late in the week needs the full tape and up to six more, which is last year's failure again.
- Differentials grow to about two hours by Saturday, still inside three. A restore needs two tapes on any day. Option c meets all three tests.
Answer: C. A weekly full backup with differentials each night
Choosing between good answers
- A question asks which schedule restores with the fewest sets after a weekly full backup
- choose differential: the full and the latest differential. A full backup every night restores fastest of all but takes longest to make.
- A question asks for the shortest nightly backup or the least storage
- choose incremental, and accept the longest restore.
- Backups were destroyed or scrambled together with the live systems
- choose an immutable or offline copy kept offsite. More copies on the same network do not help.
- You must choose between vaulting, journaling and mirroring
- match the method to the data the business can lose: a day or hours for vaulting, minutes for journaling, almost nothing for mirroring.
- Data was deleted or corrupted and a mirror copied the damage
- restore from a backup made before the damage. A mirror cannot go back in time.
Check your understanding
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
What to remember
- A full backup copies everything. An incremental copies changes since the last full or incremental. A differential copies changes since the last full.
- Full and incremental backups switch the archive bit off. A differential leaves it on.
- A restore needs the last full plus every incremental in order, or the last full plus the latest differential.
- The 3-2-1 rule: 3 copies, on 2 types of media, with 1 offsite.
- Immutable and offline copies survive an attacker who controls the live systems. Encryption stops a stolen copy being read, provided the keys are kept apart and recoverable.
- Vaulting sends backups in batches, journaling sends transaction logs, mirroring sends every change. A mirror is not a backup.
Say it from memory
Compare onsite, offsite and cloud backup storage, state the 3-2-1 rule, and say what immutable and encrypted copies protect against.
Onsite copies restore fastest and are lost with the building. Offsite copies survive the building and are slower to fetch. Cloud copies are offsite without transport, at the speed of the network link. The 3-2-1 rule: 3 copies, on 2 types of media, 1 offsite. An immutable copy cannot be altered or deleted, so it survives ransomware. An encrypted copy cannot be read if stolen, provided its keys are kept apart and can be recovered.
What does each backup type copy, and what does it do to the archive bit?
A full backup copies every file and switches the archive bit off. An incremental copies files changed since the last full or incremental backup and switches the bit off. A differential copies files changed since the last full backup and leaves the bit on, so each night's differential grows.
After a Sunday full backup, how many sets does a Thursday morning restore need under incrementals and under differentials?
Incrementals: four sets, Sunday's full then Monday's, Tuesday's and Wednesday's incrementals in order. One unreadable set in the middle stops the restore. Differentials: two sets, Sunday's full and Wednesday's differential, however late in the week the failure comes.
How do electronic vaulting, remote journaling and remote mirroring differ, and what is synchronous mirroring?
Vaulting sends whole backup files in batches, losing everything since the last batch. Journaling sends the transaction log frequently, losing the last few minutes. Mirroring sends every change to a live duplicate, losing little or none. Synchronous mirroring confirms a change only when both sites have stored it, so nothing is lost but every action waits.
How does the grandfather-father-son scheme work, and when is a backup proven?
Daily backups are the sons, weekly the fathers and monthly the grandfathers. Sons are overwritten soonest and grandfathers kept longest. A backup is unproven until data has been restored from it, so test restores run on a schedule and each one's time is compared with the RTO.
Sources
- NIST SP 800-34 Rev. 1: Contingency Planning Guide for Federal Information Systems, NISTFull, incremental and differential backups and the media each restore needs. Offsite storage and how to choose it, encryption of backups with keys stored separately, testing of backups, electronic vaulting and remote journaling to an alternate site.
- Types of backup (Windows Server 2003), MicrosoftThe archive attribute: cleared by normal (full) and incremental backups and not cleared by differential backups, and the sets each restore needs.
- Data Backup Options, U.S. Cybersecurity and Infrastructure Security Agency (produced for US-CERT by Carnegie Mellon University, Paul Ruggiero and Matthew A. Heckathorn)The 3-2-1 rule: 3 copies, on 2 different media types, with 1 copy offsite, and the trade-offs of onsite and cloud backup.
- #StopRansomware Guide, Cybersecurity and Infrastructure Security Agency, with the FBI, NSA and MS-ISACRansomware seeks out and deletes or encrypts accessible backups; offline, encrypted backups; immutable storage; regular tests of restoring.
- ISACA Glossary, ISACAElectronic vaulting as a strategy that sends batch updates over a communication link to offsite storage so that data can be recovered within hours.
- SNIA Dictionary, Storage Networking Industry AssociationA snapshot as a point-in-time copy of data, and synchronous and asynchronous replication defined by when a write is acknowledged.
- How GFS Rotations Work (Arcserve Backup 19.0), ArcserveGrandfather-father-son rotation: daily backups are sons, weekly backups fathers and monthly backups grandfathers.
- Tower of Hanoi scheme (Acronis Backup and Recovery 11.5), AcronisThe Tower of Hanoi scheme, in which each level of backup is made half as often as the level before, so backups accumulate toward the present.
- Using Tape Drives without Autochanger (Bareos documentation), BareosA weekly cycle of six tapes: one for each weekday and two Friday tapes.