The 3-2-1 backup rule is a data protection strategy requiring three copies of data stored on two different media types, with at least one copy kept in a remote location. Designed to eliminate single points of failure, it ensures data recoverability during hardware failures, site-wide disasters, or cyberattacks. Modern infrastructures frequently extend this baseline to 3-2-1-1-0 by adding an immutable, air-gapped copy and verifying backups for zero errors.
How it works
The rule divides risk across independent storage layers so that a single fault cannot destroy every copy of your production data:
- 3 copies of data: Maintain your live production data alongside two separate backups. If one backup fails or becomes corrupted during a restore, the second backup remains intact.
- 2 different media types: Store copies on distinct storage technologies, such as local
NVMeorRAIDarrays paired with remoteObject Storage. Using different underlying systems prevents firmware bugs or controller failures from wiping out multiple copies at once. - 1 copy off-site: Replicate at least one backup to a physically separate data center or region. This isolates your recovery data from localized events like fires, power grid failures, or physical theft.
Statistically, if the probability of one drive failing is 1 in 100, the chance of two independent drives failing simultaneously drops to 1 in 10,000. Introducing a geographically isolated third copy reduces the risk of total data loss to near zero. For deeper architectural planning, see our VPS Backup Strategy 3-2-1: Our Hard Data & Setup Guide.
Example
In a typical Linux server environment, you can implement the 3-2-1 rule using an encrypted deduplicating tool like restic. Copy 1 lives on the server's primary NVMe disk, Copy 2 is written to an attached block storage volume, and Copy 3 is pushed off-site to an S3-compatible bucket:
# Copy 2: Local secondary volume backup
restic -r /mnt/local-backup-volume backup /var/www /etc
# Copy 3: Off-site S3-compatible object storage backup
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
restic -r s3:https://s3.remote-region.example.com/prod-backups backup /var/www /etc
Scheduling both commands via cron or systemd timers ensures automated daily replication across both media types. Compare tool trade-offs in Restic vs Borg: Our Hard Data on Backup Performance & Costs.
What matters when choosing a server or hosting
- Separate storage backends: Ensure your provider offers S3-compatible object storage or isolated backup servers in a different physical facility, rather than just local snapshots on the same hypervisor.
- Object Lock and immutability: Look for storage buckets supporting WORM (Write-Once-Read-Many) policies so compromised root credentials on your primary server cannot delete off-site archives.
- Private networking and bandwidth limits: Check whether internal transfers to backup volumes are unmetered and isolated from public network interfaces to avoid egress fees and latency spikes.
Balancing storage redundancy with recovery speed is covered in VPS Backup Configuration: Hard-Won Data on RTO and Costs.
Common mistakes
- Counting RAID as a backup:
RAIDprovides hardware fault tolerance, not a backup. If you accidentally runrm -rfor suffer database corruption, the mirror replicates that destruction immediately. - Storing snapshots on the same host: Keeping virtual machine snapshots on the same physical node or storage cluster violates both the two-media and off-site rules.
- Skipping restore drills: Unverified backups often fail silently due to expired keys, missing database dumps, or corrupted repositories.
FAQ
Is cloud sync like Dropbox or Google Drive enough for the off-site copy?
No. Continuous file sync mirrors deletions and ransomware encryption instantly across connected clients, whereas proper backups preserve point-in-time snapshots.
What does 3-2-1-1-0 mean?
It expands the original rule by adding 1 offline or immutable copy to block ransomware, and 0 unverified errors through automated integrity checks and test restores.
Do database servers need special handling before backing up?
Yes. Copying raw database files while the engine is running risks inconsistent states; always generate a logical dump (such as pg_dump) or use point-in-time write-ahead log archiving first.