A backup you've never restored isn't a backup
The 3-2-1 rule, Proxmox Backup Server, consistent database copies and restore testing: a practical backup plan for servers you run yourself.
Most people discover their backup doesn’t work at the worst possible moment: right after they need it. The cause is rarely that there were no backups; it’s that nobody ever tried restoring one. Here is a practical plan for anyone running their own servers.
The 3-2-1 rule
The “Data Backup Options” paper produced for US-CERT puts it like this, crediting Peter Krogh’s book on digital asset management:
- 3 copies of every important file: the original and two backups.
- On 2 different types of storage media.
- 1 copy offsite.
The idea is that data should survive more than one kind of disaster: a failed disk, a human mistake that deletes everything, or a fire or theft that takes the whole site. Some backup vendors add two digits: one offline or immutable copy, and zero errors when restores are verified. That’s a vendor extension, not a formal standard, but it points at the two risks the original rule doesn’t name explicitly: ransomware, and backups that don’t work.
Ransomware changed the math
Ransomware that reaches your server can reach your backups too if they’re connected and writable with the same permissions. That’s why CISA’s ransomware guide recommends:
- Offline, encrypted backups of critical data.
- Regularly testing backups’ availability and integrity in a disaster-recovery scenario.
- Up-to-date “golden images” of critical systems you can rebuild from quickly.
Proxmox Backup Server
If your services run on Proxmox VE, Proxmox Backup Server (PBS) is the natural choice. The latest release is 4.2, from 29 April 2026. What matters, per its documentation:
- Incremental, deduplicated backups: after the first full backup, only changed chunks are stored.
- Client-side encryption with AES-256-GCM: the server storing the backups can’t read them.
- Scheduled verify jobs that re-check stored backups — the docs recommend repeating them because data can rot on disk over time.
- Sync to another, offsite PBS, transferring only new chunks. Since 3.3, the local server can push backups to the remote one.
- Datastores on removable media since 3.3: plug in an external disk, the sync runs, then unplug it and store it elsewhere. That’s your offline copy.
- Storage on S3-compatible services, officially supported as of 4.2.
- Tape support for those who need it.
One point that surprises many people: pruning alone frees no space. It removes the old snapshots’ metadata only; the actual space comes back after a garbage-collection run.
Databases need special handling
Copying the files of a running database while it’s being written to can give you a backup that doesn’t work. Per PostgreSQL’s docs, a file-system-level backup needs the server shut down, because tools like tar don’t take an atomic snapshot. The alternatives:
pg_dumpto export the database as SQL while it runs.- A consistent file-system snapshot (a ZFS or LVM snapshot, for example), which works while the server is running.
- Continuous archiving (PITR) when you need to restore to a specific moment.
For SQLite, don’t copy the file with an ordinary copy tool. Use the backup API, or VACUUM INTO, which writes a copy of a live database to a separate file:
sqlite3 app.db "VACUUM INTO '/backup/app-$(date +%F).db'"
The same caution applies to Docker volumes. Docker’s docs show backing up a volume with a temporary container that tars it — fine for files, but not safe for a database running inside that volume. Dump the database with its own tool first, then back up the dump.
Restore testing: the part everyone skips
A plan without a test is a wish. A practical monthly test:
- Pick one service, rotating each month.
- Restore it on a separate machine, not over the original: a fresh VM, or a database under a different name.
- Check it actually works: does the page load? Is the data current up to the backup’s date?
- Time it: how many hours did the restore take? That’s your real downtime if the problem happens.
- Write down the steps in a file next to the backups — next time, it may not be you doing the restore.
The takeaway
Backups aren’t a set-and-forget task. They’re three copies on two kinds of media with one offsite, an offline copy ransomware can’t reach, databases copied with their own tools rather than as files, and a test restore every month. That last part is what turns everything before it from hope into a guarantee.
