Proxmox Backup Server for a home lab: deduplicated backups you have actually restored
Proxmox VE's built-in backups work. That sentence deserves to come
first, because Proxmox Backup Server (PBS) is not a rescue from something
broken, it is an answer to a specific scaling pain. The built-in
vzdump writes a full compressed copy of every guest on every
run, so keeping a month of history costs roughly a month of full copies.
PBS changes the arithmetic: backups are stored as deduplicated,
incremental chunks shared across guests and across runs, verified on a
schedule, and searchable down to a single file inside a VM image without
unpacking the whole thing. What most setup guides underplay is that the
install is the easy half. The other half, the maintenance jobs, the
encryption key, and a restore that actually boots, is where PBS earns
or loses trust, and it is the half this guide spends its time on.
Decide: do you need PBS yet?
| Situation | Sensible choice |
|---|---|
| Two or three small guests, a NAS target, a week of history is plenty | Stay on vzdump. It is built in, it works, and there is nothing new to maintain. |
| Retention is being cut because full copies eat the disk | PBS. Deduplication is precisely the fix for retention bought in whole multiples. |
| Several hosts, or guests you would want file-level restore from | PBS. One policy, one datastore, chunk-level verification. |
| No second device or disk the backups could live on | Fix that first. PBS on the same failing disk as the guests is a tidier way to lose everything at once. |
The retention arithmetic shows why dedup matters. Take a documented home-lab policy, keep the last 3 backups, 7 daily, 4 weekly, and 6 monthly, which yields about 20 restore points spanning six months. As full vzdump copies, 20 restore points of a guest cost close to 20 times that guest's compressed size. Under PBS deduplication, restore points after the first mostly store what changed between runs, so the extra months usually cost far less space than they sound. That gap, weeks of history becoming months, is the entire reason to run a second backup system. If your retention needs do not create that gap, the decision table says stay put.
Setup, step by step
- Install PBS somewhere that is not the host it protects. Separate hardware is the documented recommendation; a small retired machine with a decent disk is the classic home-lab answer. A PBS virtual machine on the same host is a workable compromise with a named caveat: host failure takes the backups' front door with it, so an additional copy elsewhere stops being optional. After installation the web interface answers over HTTPS on port 8007.
- Create the datastore. From the shell,
proxmox-backup-manager datastore createwith a name and the backing path registers the storage everything else points at. - Create a least-privilege identity. Make a dedicated PBS user and API token for backups and grant it the DatastoreBackup role on that datastore, not the root account. Proxmox VE will authenticate with this token, and if it ever leaks, the blast radius is one datastore's backup operations.
- Connect Proxmox VE. Note the server fingerprint
(
proxmox-backup-manager cert infodisplays it), then add the storage on the VE side withpvesm add pbs, supplying the server, datastore, token identity, and fingerprint. The fingerprint is not ceremony: it is how VE knows it is handing your backups to your server. - Create the backup job in VE (Datacenter, then Backup) targeting the PBS storage, and run one backup by hand before scheduling anything. Keep the existing vzdump jobs running until the restore proof at the end of this guide has passed.
The maintenance trio: prune, garbage collection, verify
PBS separates three jobs that beginners often squash into one vague "cleanup," and the order between them is the substance:
- Prune applies the retention policy, the keep-last, keep-daily, keep-weekly, keep-monthly counts, which in current PBS are settings on the datastore itself, along with its own prune schedule. Set retention more generous than the minimum you think you need: schedules can be tightened later, but a snapshot pruned last month cannot be recreated. Note also that retention belongs on PBS, not re-declared per VE job, so one policy governs everything.
- Garbage collection reclaims the space pruning
freed. It runs per datastore on its own schedule (editable in the GUI
under Prune & GC, or via
proxmox-backup-manager), and it must run after prune and outside the backup window. Expect a delay by design: space freed by today's prune is reclaimed on a later GC run, because GC applies a safety window before deleting chunks, a datastore that looks full the morning after a prune is usually just waiting for GC, not broken. - Verify re-reads backup data and checks it against its checksums, on a schedule of its own. Verify jobs can skip recently verified snapshots and re-check after a set period, and the datastore option to verify new backups right after completion closes the gap for fresh data. Follow the vendor's own cadence advice: reverify everything at least monthly even when previous verifications passed, because drives quietly degrade, bit rot is exactly the failure that a backup system exists to survive, and an unverified old backup is a rumour, not a copy.
Set datastore notifications for prune, GC, and verify failures to reach you on error at minimum. These three jobs are the system working as designed; silence from them should mean success, not a dead scheduler.
Encryption keys: custody is the feature
PBS can encrypt backups client-side, so the datastore never holds readable guest data. The trade is absolute and worth stating plainly: without the encryption key, encrypted backups cannot be restored, not by support, not by root, not by anyone. So the key gets the same treatment as the data: a copy stored in your password manager, a second copy off the PBS machine entirely (the password manager cannot be its own only key store if the vault itself is among the things being backed up), and the location written into your lab notes. Test the key during the restore proof below, not during an incident.
The restore proof
- Pick a real guest, not the smallest throwaway, and restore it from PBS to a different VM ID, leaving the original untouched.
- Boot the restored guest and sign in. For data services, open the data: a file restored from inside the image (PBS can restore a single file without unpacking the whole backup) should match what you expect.
- If backups are encrypted, confirm the restore used the stored key copy from your password manager, that is the custody test.
- Only now retire or reduce the old vzdump schedule, and record the date the proof passed in your lab documentation.
What success looks like
The datastore shows backups from every scheduled guest; prune, GC, and verify each show a recent successful run with the next run scheduled; notifications fire on a deliberately failed test (point a job at a stopped target once, and watch the alert arrive); and a restored guest has booted and served its data within the last month. When all four are true, PBS is infrastructure. Before that, it is a promising installation.
FAQ
Should the old vzdump jobs be deleted the day PBS is installed? No. Keep them running until a PBS backup has been restored and booted successfully, the documented setup order ends with the restore proof, and the old jobs are the safety net until it passes.
How much disk does PBS need? Size for the first full copy of every guest, plus change. Because deduplication collapses repeated data across guests and runs, real datastores land far below the naive sum of full copies, the retention example above keeps about 20 restore points spanning six months at a small multiple of one full set, not twenty.
The datastore did not shrink after pruning. Is GC broken? Almost certainly not: GC runs on its own schedule, after prune, and honours a safety window before deleting chunks. Check the GC job's last run before suspecting the datastore.