On this page
What is the 3-2-1 rule?
- 3 copies:Your primary data plus two backups. If you only have one backup and it is corrupt, you have nothing.
- 2 media types:Your primary on one type of storage, backup on another. If both are hard drives in the same machine, a firmware bug or power surge can take both out.
- 1 offsite copy:Physically separate from your primary location. This is the copy that survives fire, flooding, theft, and ransomware that spreads through the local network.
Why most setups fail the third rule
Most setups fail on the offsite copy. RAID is not backup, and a second disk or a NAS in the same building is not offsite. Cloud sync (Dropbox, Google Drive) is not backup either: it copies deletions and ransomware encryption to the remote side.
Real offsite backup means immutable snapshots, a physically separate location, and encryption with a key you control. For a ZFS NAS, offsite backup for TrueNAS CORE and SCALE compares ZFS replication, Restic and rsync tasks.
A practical 3-2-1 setup for homelabs and Linux servers
- Copy 1 (primary):Your running data on your main machine or NAS.
- Copy 2 (local backup):Restic backup to an external drive, a second NAS, or a Proxmox Backup Server on the same LAN.
- Copy 3 (offsite):Restic over HTTPS to a private encrypted vault on ServerCrate. Physically in Los Angeles, encrypted with your key, accessible from anywhere.
Setting up the offsite copy with restic
# Set up credentials
sudo tee /etc/restic/env <<EOF
RESTIC_REPOSITORY=rest:https://vaultuser:YOUR_TOKEN@a1b2c3d4.vault.servercrate.net/
RESTIC_PASSWORD=your-strong-password
EOF
sudo chmod 600 /etc/restic/env
source /etc/restic/env
restic init
# First offsite backup
restic backup /home /etc /var/www \
--tag offsite \
--exclude="*/cache" \
--exclude="*/tmp"
# Verify it worked
restic snapshotsTesting your backup: the step everyone skips
A backup you have never restored is a hope, not a backup. Restore a random file at least every 90 days and check it opens, then restore a full directory to a temp location. It takes 15 minutes.
A copy you have never restored is not proven; how to verify restic backups walks through restic check, --read-data-subset and a test restore. The restic restore guide has copy-paste commands, and with no egress fees a test costs nothing.
# Test restore of a specific file
restic restore latest \
--target /tmp/restore-test \
--include /etc/nginx/nginx.conf
cat /tmp/restore-test/etc/nginx/nginx.confModern extensions to 3-2-1
3-2-1-1-0 adds an immutable copy (1) with zero verified errors (0). Restic's restic check handles the zero-errors part. An append-only remote repository handles immutability: old snapshots stay locked against deletion even if an attacker gets your backup credentials.
3-2-1 for different environments
- Homelab (Proxmox):Copy 1 = running VMs. Copy 2 = Proxmox Backup Server on local NAS. Copy 3 = Restic to ServerCrate for configs, app data, and critical files. See the Proxmox offsite backup guide.
- Linux VPS:Copy 1 = live server. Copy 2 = provider snapshot (if available). Copy 3 = Restic to ServerCrate. Provider snapshots don't count as offsite; they are still in the same provider infrastructure. See the VPS backup service page.
- NAS (TrueNAS/Synology):Copy 1 = NAS primary pool. Copy 2 = NAS parity / ZFS mirror. Copy 3 = Restic to ServerCrate over HTTPS. See the NAS offsite backup guide.
- Docker setup:Copy 1 = running containers with bind mounts. Copy 2 = daily database dumps on local disk. Copy 3 = Restic to ServerCrate including dumps and compose configs. See the Docker backup guide.
Why the fourth rule exists
The original rule predates mainstream ransomware. The fourth rule, one immutable or append-only copy, means ransomware that encrypts your primary and local backup has no path to the offsite copy.
A ServerCrate vault is writable only over its authenticated REST endpoint with your token, never mounted as a network drive or SMB share. An attacker on your primary machine has no way in without that token.
Common misconceptions about 3-2-1
Five traps that break the rule without anyone noticing:
- "My RAID array counts as two copies." It does not. RAID survives a drive failure, not deletion, corruption, ransomware, a power surge or a stolen NAS. It is one copy on several disks.
- "My cloud sync service is my offsite backup." Usually not. Dropbox, Google Drive, iCloud and OneDrive sync both ways, so encrypted files replace your good copies. A real offsite backup is write-protected from the source.
- "Two copies on the same server = two copies." No. "Media types" means independent storage, such as an internal drive plus a USB drive. Two partitions, or two VMs on one host, are one copy.
- "I can skip offsite if my local backup is encrypted." Encryption protects confidentiality, not availability. If the building burns, the encrypted local backup burns with it.
- "Versioning isn't part of 3-2-1." True, but ransomware makes it essential: a latest-only backup can be overwritten with encrypted data before you notice. Tune retention with restic forget to survive a delayed attack.
Why offsite matters more than any other component
If you could keep only one copy, keep the offsite one. Fire, flood, theft and ransomware spreading across the LAN tend to kill every local copy at once; the offsite copy survives the bad day.
ServerCrate is that third copy: a different building, different hardware, behind a token-authenticated REST endpoint.
Minimum practical 3-2-1 setups
Minimum setups that satisfy 3-2-1 at each scale:
- Solo developer, laptop only: Laptop (1) + Time Machine or rsnapshot to an external USB drive (2) + Restic to ServerCrate (3). Total cost: one external drive plus $3/month.
- Homelab with one server: Server (1) + nightly rsync to a second disk in the same box (2, really 1.5) + Restic to ServerCrate (3). Upgrade path: a dedicated backup machine.
- Small business, 5-10 people: Workstations (1) + file server with versioned snapshots (2) + Restic from the file server to ServerCrate (3). One person runs the backup, one other person knows how to trigger a restore.
- Multi-site org: Primary (1) + on-site backup appliance (2) + offsite replication to another region (3). This often justifies a backup admin and heavier tooling, though Restic still works.