Course contentsShow
← System Design
Lesson 1426 of 1,91935. Backup and Disaster RecoveryFree lesson

Snapshot-Based Backups

Using storage system snapshots for fast, space-efficient backups with copy-on-write mechanisms.

Snapshot-Based Backups

What you'll learn: How storage systems create instant, space-efficient backups using copy-on-write technology without duplicating entire datasets.


The Core Idea

A snapshot is a point-in-time image of your storage system that appears to capture the entire state instantly, but actually uses clever tricks to avoid copying all data immediately. When you create a snapshot, the system records references to existing blocks rather than duplicating them. Only when data changes does the system copy the original block—this is called copy-on-write (COW).

Think of it like taking a photo of your desk. The photo "captures" everything without moving any objects. If you later rearrange items, your photo still shows the original arrangement without requiring a second desk's worth of furniture.

How Copy-on-Write Works

When you create a snapshot at time T0:

  1. The system marks the current state as a reference point
  2. All existing data blocks remain in place
  3. When a write occurs to block X, the system first copies the original block X to snapshot storage
  4. Then it writes the new data to block X's current location

The snapshot now preserves the old version while the live system has the new version. Multiple snapshots share unchanged blocks, making them incredibly space-efficient.

Advantages

  • Nearly instantaneous creation (seconds, not hours)
  • Space-efficient: Only changed blocks consume additional storage
  • Low performance impact during snapshot creation
  • Fast recovery: Restoring from snapshots is much quicker than traditional backups

Practical Considerations

Snapshots work best on compatible storage systems (SAN, NAS, cloud block storage). They complement traditional backups rather than replace them—snapshots live on the same storage infrastructure, so they don't protect against hardware failure. You still need offsite backups following the 3-2-1 rule.

Key Takeaway: Snapshot-based backups leverage copy-on-write to create instant, space-efficient point-in-time copies that share unchanged data blocks, ideal for frequent backup schedules with minimal performance overhead.