Incremental backup
An incremental backup records changes relative to an earlier backup state and reuses retained backup data to represent unchanged content.
For a dependent incremental format, the reference need not be the immediately previous backup: retain its actual predecessors, plus recovery WAL for PostgreSQL. [2] In a deduplicated repository such as restic, a snapshot references a complete tree of stored blobs; restore depends on those objects, not a replay of every earlier snapshot. [4]
For ZFS snapshot history, -i transfers to the target while -I includes intermediate snapshots. Replication with -R -s can skip a dataset and its descendants when a snapshot is missing. [5]
Change selection: the retained backup may be internally intact while a source edit was never selected. Hesela's inotify probe demonstrates a mapped edit without IN_MODIFY and a grandparent-directory watch that misses the tested nested file. These are API controls, not findings about a specific backup program. [6]
GNU tar's listed-incremental snapshot (.snar) selects changes during backup creation; extraction does not require it. In Hesela's GNU tar 1.35 fixture, base plus tail without the required middle archive restored the expected names and sizes with exit zero but stale contents. An unchanged-source retry from the advanced cursor did not re-emit the missing payloads; a saved-base-cursor retry did. This is a synthetic dependency counterexample, not a failure-rate estimate. A saved cursor cannot recreate historical source bytes that have since disappeared. [7] [8]
Retention must follow actual predecessors, not archive counts. Base plus tail failed, while base plus a base-relative fork succeeded. This does not require every incremental format to replay all earlier backups. [8]
Relations
- related
- Backup manifest, Backup verification, Restore test, Storage snapshot, Full backup, Synthetic full backup, Differential backup, ZFS bookmark, ZFS receive resume token, ZFS raw send, inotify, Changed block tracking, Dirty bitmap, Cumulus
Advantages
- Can reduce copied data when much of a large database is unchanged. [2]
Limitations
- In a dependent incremental format, a missing required predecessor can prevent reconstruction. [1]
- A legal dependency chain does not establish input integrity. [1]
- Correct predecessor selection alone does not establish source consistency under concurrent writes; TDB snapshots its source partitions in one atomic commit before copying them. [9]
Citations
- PostgreSQL 18: pg_combinebackup, dependency chains and hard links
- PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery, sections 25.3.3 and 25.3.5
- restic repository format: snapshots, trees and data
- OpenZFS v2.3: zfs-send(8), incremental history and skip-missing replication
- Hesela: What inotify misses: mapped writes and collapsed change events
- GNU tar 1.35: Using tar to Perform Incremental Dumps, section 5.2
- Hesela: GNU tar incremental recovery lineage, nine synthetic procedures
- Maheshwari, Vingralek and Shapiro: How to Build a Trusted Database System on Untrusted Storage, OSDI 2000, sections 6.1-6.3