The 3-2-1 backup rule, applied to a single server
27 Nov 2026 backup
Three copies, two places, one far away: a practical version for a VPS.
The rule: keep three copies of data, on two different kinds of storage, with one somewhere else.
For a typical VPS
- The live data on the server
- A nightly copy on a different machine
- A further copy with another provider or location
What to include
Databases as dumps, uploaded files, configuration, environment files and the keys needed to decrypt anything.
Protect copies from the server itself
If the server can delete its backups, so can an intruder. Let the backup machine pull, or use storage that prevents deletion for a period.
Encrypt
Copies leave your control, so encrypt them and store the password separately.
Retain sensibly
Daily for a week or two, weekly for a month or two, monthly longer if needed. Match any legal duty.
Restore
Schedule a restore test. Until then you have a hope, not a backup.
Snapshots
Useful before a risky change. A snapshot on the same storage is not a backup.