← Lessons

quiz vs the machine

Silver1050

Databases

Backup Strategies Full and Incremental

A full backup copies everything while an incremental copies only what changed, and the mix you pick decides how long both backup and restore take.

4 min read · intro · beat Silver to climb

Two Building Blocks

A full backup copies the entire database at a point in time. It is simple to restore from because everything you need lives in one place, but it is slow to take and large to store. An incremental backup copies only the blocks or rows changed since the previous backup. It is fast and small, but a restore must replay a chain.

The Common Pattern

Most schedules combine the two:

  • Take a full backup weekly as an anchor.
  • Take incremental backups daily or hourly between fulls.
  • A restore loads the last full, then applies each incremental in order.

A differential backup is a middle ground: it copies everything changed since the last full, so a restore needs only the full plus one differential.

The Tradeoff

More frequent fulls cost storage and backup time but make restores fast and simple. More incrementals save space but lengthen the restore chain and add risk, because a single corrupt increment can break the whole sequence.

Key idea

Full backups restore fast but cost storage and time, incrementals are cheap to take but slow and fragile to restore, so real schedules anchor periodic fulls with cheaper increments between them.

Check yourself

Answer to earn rating on the learn ladder.

1. What must a restore do when using incremental backups?

2. How does a differential backup differ from an incremental?

3. What is the main risk of a long incremental chain?