comparison Data & storage
Full, incremental and differential backups
To restore a full point, you need its full set. A differential needs its full base plus the chosen differential. An incremental needs the chosen increment and its predecessor chain back to the full base.
What it means
Each backup method creates a different dependency set for restoring a chosen recovery point. A label such as “day 2” tells you which state you want, not which backup sets you need. Each label in the example below stands for a set, not necessarily a single file.
The difference is the starting point for each backup. A full backup stores the whole state at the chosen point. A differential stores changes since its full base. An incremental stores changes since the preceding backup, so restoring it requires following those predecessors back to the full base. pgBackRest backup concepts
Try it
Start with a day-0 full backup, F0, containing 100 units of synthetic data. Day 1 adds 10 new units and day 2 adds another 20. Nothing is overwritten or removed. The simulation changes no real backup or database.
Full, incremental and differential backups
Build a synthetic daily change sequence, select a backup method and remove one required component; expose the restore dependency chain.
Local simulation only: no device, service, stored object or database is changed, and no real operation is authorized.
The fixture explicitly stores full states, per-day increments, or cumulative changes since F0. The selected method determines the required chain.
Recovery requires the complete chosen chain
- Required backup components
- F0 · I1 · I2
- Missing required components
- None
- Required synthetic data
- 130 units
- Graph-complete under declared evidence
- Yes
| Component | Size |
|---|---|
| F0 | 100 units |
| I1 | 10 units |
| I2 | 20 units |
Evaluated evidence
- Backup method
- incremental
- Recovery day
- 2
- Missing backup components
- None
Restorable means graph-complete in a synthetic append-only sequence, not a tested database recovery. Deduplication, compression, WAL and elapsed restore time are not modeled.
About this model
Every input is local synthetic evidence. Numbers stay as raw text until this model validates them. The shown evaluated values come from the same result as the explanation.
Presets replace the entire scenario. Reset restores all starting fields, scenario selection and model state; it does not change the open or closed state of this help or article FAQ.
No external request, device command, stored-input history or measurement is performed.
The defaults are Backup method incremental, Recovery day 2, Missing backup components none, and Backup-component evidence set to “Explicitly known in this fixture.” Compare the three ways to recover day 2:
- Incremental:
I2supplies the 20 units added on day 2. It does not contain the 10 added on day 1 or the original 100. With nothing missing,F0 + I1 + I2is complete: 100 + 10 + 20 = 130 units. - Differential:
D2contains all 30 units added sinceF0, including day 1’s 10. You needF0 + D2: 100 + 30 = 130 units. You do not need the day-1 differential. - Full:
F2already contains all 130 units. It is the only backup set needed for this point, even ifF0is missing.
Now keep day 2 selected and set Missing backup components to I1. With incremental selected, I2 is still present, but nothing in F0 or I2 supplies the missing day-1 data. Switch Backup method to differential without changing the missing component: F0 + D2 is still complete because I1 is not part of that restore.
Missing and unverified are different. With Backup-component evidence set to “Unknown / evidence unavailable,” the method still determines which sets you need, but the simulation cannot say whether they are available and intact. Recovery day accepts whole-number text from 0 through 3; 2.0 and 4 are invalid and give no result. Reset restores all four defaults and clears prior steps, history, comparisons, and errors.
In practice
For a chosen recovery point, list its backup-set dependencies before judging whether it is available:
| Method | Required file-set dependencies |
|---|---|
| Full | The chosen full set |
| Differential | The chosen differential and its full base |
| Incremental | The chosen increment and its required predecessor chain back to the full base |
Distinguish what you need to restore one point from what you need to keep every point. All three day-2 restores require 130 units in this example. But keeping all three days as full sets means keeping 100 + 110 + 130 units; keeping the incremental sequence means keeping 100 + 10 + 20. These are append-only data counts, not physical storage estimates: the simulation excludes deduplication and compression. It does not calculate elapsed restore time, so fewer sets do not establish a faster restore.
A complete set list is not a tested database recovery. For a PostgreSQL 18 incremental backup, earlier backups must supply blocks omitted from the selected backup. Database recovery also needs the applicable write-ahead log (WAL), which this simulation does not model. PostgreSQL 18 incremental backups · pgBackRest restore concepts
Before relying on a recovery point, identify its full set and any differential or incremental sets it requires, confirm that each is usable, and check the database’s own prerequisites. A recent backup label cannot substitute for a missing component.
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
Which files are needed for restoration?
For the declared methods: a full point uses its full set, a differential point uses its base full plus that differential, and an incremental point needs its predecessor chain back to the base. Required components must actually be usable.
Can one missing incremental break later points?
Yes in the modeled predecessor chain. Removing I1 prevents restoration of I2 when I2 depends on I1; the presence of the last file alone does not restore its missing predecessor.
Is differential the same as incremental?
No. A differential describes changes since the base full, while an incremental describes changes since its preceding backup. That difference changes the dependency set needed at restore time.
Does fewer files guarantee a faster restore?
No restore time is calculated. File count omits bytes, validation, hardware, transfer and replay costs. The example demonstrates dependencies, not a fastest-backup recommendation.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- pgBackRest: User Guide
Concepts → Backup: Full, Differential, Incremental; Restore. A differential restore needs its full base; an incremental restore needs its predecessor chain. A database restore also needs applicable WAL, outside the abstract file-set calculation.
Checked .
- PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery
25.3.3 Making an Incremental Backup. Restoring an incremental backup requires earlier backups supplying omitted blocks; required bases and WAL must remain available.
Checked .