Skip to content

Lesson 4 of 13 · 16m

Full, Incremental, and the Snapshot Trap

Differential vs incremental restore fan-out, content-defined dedup, and why a same-pool snapshot is not a backup.

There are three ways to schedule what a backup stores, and a fourth thing — the filesystem snapshot — that pretends to be one of them and is not.

The three schedules

A full backup copies everything, every time. Restore is one artifact; the cost is the copy itself — full disk reads, full transfer, full storage per run. A differential stores everything changed since the last full: restore is full + one differential, and each run grows until the next full resets it. An incremental stores what changed since the last backup of any kind: cheapest to write, but restore replays the full plus every increment in the chain — each one an artifact that can be missing or corrupt, which is why incrementals get pruned and re-based on schedule.

Deduplicating tools quietly dissolved most of this debate. restic and borg use content-defined chunking — Rabin fingerprinting over rolling windows — so every snapshot is logically a full tree but physically stores only chunks the repository has never seen. Backup #47 costs the bytes that changed since #46; restoring it is a tree walk, not a chain replay. There is a second consequence worth knowing: because no snapshot depends on another, restic forget can prune any snapshot without breaking a chain — the failure mode where increment #12 of 30 is corrupt and takes the tail with it does not exist in a dedup repo. The "full vs incremental" tradeoff survives mostly in database engines and cloud snapshots, where the provider's model is fixed: EBS snapshots are incremental under the hood (changed blocks since the last snapshot), billed and restored through AWS's own machinery. First snapshot is a full copy; later ones store changed blocks only, billed per GB-month of what they hold — and deleting an early snapshot does not drop the bill proportionally, because blocks still referenced by survivors merge forward.

The snapshot trap

zfs snapshot pool/data@pre-upgrade returns in milliseconds and costs nearly nothing: copy-on-write means the snapshot shares blocks with the live filesystem and stores only divergence. Same for Btrfs subvolumes, LVM snapshots, and EBS volume snapshots. Classic thick LVM snapshots add a write tax of their own: every first write to the origin copies old blocks into the exception store, the snapshot dies entirely when that store fills, and a busy volume under an old snapshot slows — thin-pool snapshots (lvcreate -s against a thinpool) share blocks CoW-style instead. Instant, cheap — and all of them die with the thing they snapshot. The snapshot lives in the same pool, the same volume group, the same volume's block chain. Pool degradation, array failure, zpool destroy, host compromise: gone together.

The distinction that matters:

  • zfs snapshot alone — a CoW view in the same pool. Rollback tool. Survives rm -rf of files and a bad apt upgrade. Dies with pool, host, and admin.
  • zfs send pool/data@snap | ssh backup zfs recv tank/replica — bytes moved to a different machine. That is a backup, and incremental sends (zfs send -i) make it cheap — with one hard requirement: the earlier snapshot must already exist on the destination. Prune the intermediate snapshots at the far end and the next -i send has nothing to diff against.
  • rsnapshot / rsync --link-dest — hardlinked file trees per run: full-appearing copies sharing unchanged inodes on the destination filesystem. Fine incremental file backup; shares the destination's fate, so it still needs an offsite leg.

EBS snapshots land in between: they persist independent of the volume — in the same account and region, which is exactly the domain accounting the 3-2-1 lesson covered.

Where snapshots genuinely earn their keep

Use them for what they are: instant rollback points. Before a schema migration, an OS upgrade, or a bulk import — snapshot, try the thing, roll back in seconds if it burns. Pair with fsfreeze or an engine quiesce when consistency matters (next lesson). For DR, a snapshot is only a backup once its bytes exist on a different failure domain — replicated, exported, or shipped.

The practice: snapshots for rollback speed, replicated CoW sends or a dedup repository for recovery. Keep snapshot retention short — CoW divergence means a busy filesystem holds old blocks against every snapshot, and a pre-upgrade snapshot someone forgot in March is quietly pinning gigabytes of dead data. Never count a same-pool, same-array, same-account snapshot toward your three copies — it is the same copy with a timestamp in its name.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.