Home VirtualizationProxmox Backup Server (PBS): Set Up Deduplicated Backups for Your VMs

Proxmox Backup Server (PBS): Set Up Deduplicated Backups for Your VMs

by Knowledge Base Linux
Proxmox Backup Server PBS — Proxmox Backup Server (PBS): Set Up Deduplicated Backups for Your VMs

The built-in vzdump tool is fine for a handful of VMs, but it stores every backup as a full archive: nightly backups of a 500 GB fleet quickly turn into tens of terabytes. Proxmox Backup Server (PBS) was built to fix exactly that. It stores backups as content-addressed chunks, so identical data is kept exactly once, transfers are incremental forever, and a month of daily backups can occupy little more space than two full copies.

In this guide you will install Proxmox Backup Server, create a datastore, connect it to your Proxmox VE node as storage, schedule deduplicated backups with sane retention, and — the step everyone skips — actually restore something. We assume you already have a working node; if not, start with our Proxmox VE 9 installation guide.

What Is Proxmox Backup Server and How Does It Work? – Proxmox Backup Server PBS

Proxmox Backup Server is a Debian-based appliance (PBS 4.x pairs with Proxmox VE 9) whose only job is receiving, deduplicating, verifying and serving backups. When a backup runs, the client splits the VM disk into variable-size chunks — roughly 4 MiB on average — hashes each chunk with SHA-256, and uploads only the chunks the server does not already have. Compression (zstd) happens on the client before upload.

Three consequences make PBS a genuine upgrade over vzdump archives:

  • Deduplication across everything. Chunks are shared between snapshots, between VMs, even between a VM and its clones. Similar guests (your ten Debian web servers) mostly store one copy of their common data.
  • Incremental forever. After the first full upload, every backup transfers only changed chunks — fast even over a WAN link to an off-site PBS.
  • Verification and encryption. PBS can re-hash stored chunks on a schedule to detect bit rot, and backups can be encrypted client-side (AES-256-GCM) so the server never sees your data — valuable when the PBS lives at a hosting provider.
Proxmox Backup Server deduplication merging duplicate data chunks into unique stored blocks
Deduplication: only unique chunks are stored, no matter how many VMs contain them.

Prerequisites for Installing Proxmox Backup Server – Proxmox Backup Server PBS

  • A separate machine or VM. PBS can technically be co-installed next to Proxmox VE, but then hypervisor and backups share one fault domain — if the host dies, both are gone. Use a dedicated box, or at minimum a VM on different hardware.
  • Modest compute: 2+ cores and 4 GB RAM is a workable minimum; verification and garbage collection appreciate more.
  • Fast datastore storage. The chunk store is thousands of small files with heavy metadata access. An SSD (ideally mirrored ZFS) makes backups, GC and restores dramatically faster. Spinning disks work for small, patient setups.
  • Network: gigabit minimum between PVE and PBS; the first seed backup moves every byte once.

Step 1: Install Proxmox Backup Server

The installer ISO (from the official Proxmox downloads) will feel familiar — it is the same Debian-based flow as PVE: pick the target disk (choose ZFS RAID1 if you have two SSDs), set an FQDN, a root password and an alert email. Afterwards the web interface is at https://YOUR-IP:8007.

Update before anything else. Without a subscription, switch the PBS sources file to the no-subscription component (pbs-no-subscription) the same way you would on PVE, then:

apt update
apt dist-upgrade -y
proxmox-backup-manager versions

Step 2: Create a Datastore

A datastore is simply a directory where PBS keeps chunks and indices. In the web UI: Datastore → Add, name it (e.g. main) and point it at a path on your fast storage, e.g. /mnt/datastore/main. The equivalent on the CLI:

proxmox-backup-manager datastore create main /mnt/datastore/main

If the path lives on ZFS, create a dedicated dataset for it first and set compression=lz4 and atime=off — PBS generates enormous amounts of metadata I/O, and sparing the pool unnecessary access-time writes helps.

Step 3: Create a Backup User and API Token

Never connect Proxmox VE with the PBS root account. Create a dedicated user (Configuration → Access → User), for example pve-backup@pbs, give it the DatastoreBackup role on your datastore (enough to write backups and manage its own snapshots, nothing more), then create an API token for it with privilege separation enabled. Copy the token secret immediately — it is shown once.

This least-privilege habit is what lets hosting providers safely offer backup space: one compromised PVE node can then only touch its own backups, not the whole datastore, and namespaces let you go further and isolate each client into its own area of the same datastore.

Step 4: Add Proxmox Backup Server as Storage in Proxmox VE

On the PVE side go to Datacenter → Storage → Add → Proxmox Backup Server and fill in:

  • Server: IP or hostname of the PBS
  • Datastore: main
  • Username: the token ID, e.g. pve-backup@pbs!pve
  • Password: the token secret
  • Fingerprint: the server’s certificate fingerprint — on PBS, the dashboard’s “Show Fingerprint” button or:
proxmox-backup-manager cert info | grep Fingerprint

Optionally set an encryption key in the storage options. If you do, export the key and store it offline (password manager, printed, sealed envelope — anything not stored only on the backed-up machines). Client-side encryption without its key means permanently unrecoverable backups.

Step 5: Run and Schedule Deduplicated Backups

Test immediately: select a VM → Backup → choose the PBS storage, mode Snapshot, and start. Then schedule properly under Datacenter → Backup → Add: pick the PBS storage, a nightly schedule (e.g. 02:00), your VMs, snapshot mode, and a notification policy. Retention is deliberately not set on the PVE job — it belongs to PBS, where one prune policy can govern everything.

# The same backup from the shell:
vzdump 100 --storage pbsstore --mode snapshot

Watch the second run of any job: it finishes in a fraction of the time, because the client uploads only chunks whose hashes are new. That is deduplication doing its job, not a skipped backup — the logs show exactly how many chunks were reused.

Step 6: Prune, Garbage Collection and Verification

Three maintenance jobs keep a datastore healthy, all configurable per datastore in the PBS UI:

  • Prune job — decides which snapshots survive, e.g. keep the last 3, plus 7 daily, 4 weekly and 6 monthly. Pruning only removes snapshot indexes; it frees no space by itself.
  • Garbage collection (GC) — reclaims chunks that no remaining snapshot references. Schedule it after prune (e.g. weekly). Space appears only after GC runs, and recently pruned chunks are kept for a safety window first, so do not panic when the disk does not shrink the same day.
  • Verify job — re-reads and re-hashes chunks to catch silent corruption early. Weekly is a good cadence; a datastore that cannot verify is a datastore you cannot trust.

Step 7: Restore a VM — and a Single File

Full restore happens in PVE: open the PBS storage, pick the backup, and choose Restore. Tick Live-restore for big VMs if the service must return immediately — the VM starts while its disks stream back in, at reduced performance until the copy completes.

For the far more common “I deleted one config file” case, select the backup in PVE and use File Restore: Proxmox mounts the backup read-only and lets you browse and download individual files and folders straight from the web UI. Whichever path you use, run a restore drill now — while it is a rehearsal, not an emergency.

Troubleshooting: Proxmox Backup Server FAQ

Backups are much slower than expected

Almost always the datastore: chunk stores want SSD metadata performance and low latency. Check that the datastore is not on a single spinning disk, that the network path is really gigabit, and that verify/GC jobs are not competing with the backup window.

Prune ran but the datastore did not shrink

Expected behavior. Prune removes references; GC reclaims space, and only after a safety period for recently orphaned chunks. Check the GC task log before concluding anything is broken.

“Permission denied” or 403 when PVE connects

The token lacks rights on that datastore or namespace. Confirm the token’s user has DatastoreBackup (or higher) on the exact datastore — and that privilege separation is not stripping the token of the user’s role path.

Fingerprint mismatch error after reinstalling PBS

A new PBS install means a new certificate. Fetch the new fingerprint with proxmox-backup-manager cert info and update it in the PVE storage configuration.

Conclusion

Proxmox Backup Server turns backups from a storage problem into a solved routine: deduplicated chunks, incremental transfers, scheduled pruning, GC and verification, plus client-side encryption when the server is not fully yours. Pair it with host-level backups of your configuration — tools like Restic on Ubuntu Server cover that gap nicely. Next in this series: clustering three Proxmox nodes and enabling high availability, so a dead host stops being an outage at all.

You may also like

KbLinux

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.