Install and configure Proxmox Backup Server 4.2
Proxmox Backup Server (PBS) stores backups of Proxmox VE virtual machines and containers. It deduplicates identical chunks across backups.
This lab installs PBS 4.2 on a separate server with a dedicated backup drive and connects Proxmox VE using a scoped API token.
You will run a first backup, configure retention and verify that you can restore a VM.
Install PBS on a separate machine
Download the PBS 4.2 AMD64 ISO, check its SHA-256 against the published value, then write it to a USB drive and boot from it.
- In the installer, identify the system drive by model and capacity. It will be erased. Leave the backup disk for setup after the first boot.
- Set a unique root password, an unused static address and DNS. On the management LAN, example values are 192.168.1.20/24 for PBS and 192.168.1.1 for the gateway. Adapt both to your network.
- After reboot, open https://192.168.1.20:8007 from the LAN and sign in as root in the Linux PAM realm. Allow TCP 8007 from Proxmox VE and the management network.
Terminalsha256sum proxmox-backup-server_4.2-1.isoConfigure repositories and apply updates
Under Administration → Repositories, keep Enterprise if you have a subscription. For an unsubscribed homelab, disable PBS Enterprise and add PBS No-Subscription. Keep the Debian Trixie and Security repositories.
Terminalapt update && apt full-upgradeRun this command as root in the PBS shell. After a kernel update, reboot and verify the web interface is reachable.
Create the datastore on the backup drive
A datastore is where PBS stores backups. This example uses a dedicated empty local drive formatted as ext4. Check its model, serial number and capacity before formatting.
- Under Administration → Storage/Disks → Directory, create a filesystem on the empty drive, name it pve-lab and enable the option to create a datastore. This erases the selected drive.
- Check that datastore pve-lab appears in the sidebar. On PBS, findmnt should show that /mnt/datastore/pve-lab is on the backup drive.
Terminallsblk -o NAME,SIZE,MODEL,SERIAL,FSTYPE,MOUNTPOINTS findmnt -T /mnt/datastore/pve-labCreate a scoped user and API token
In the PBS root shell, create a dedicated user and its pve1 token. Copy the generated secret into your password manager. PBS displays it only once.
- Assign DatastoreBackup to both the user and the token on /datastore/pve-lab. The account’s permissions limit the token’s effective privileges. The final command checks for Datastore.Backup.
- This role can back up and restore groups that the identity owns. If you replace a token or reuse a datastore, check group ownership before running backups again.
Terminalproxmox-backup-manager user create pve-backup@pbs proxmox-backup-manager user generate-token pve-backup@pbs pve1 proxmox-backup-manager acl update /datastore/pve-lab DatastoreBackup --auth-id pve-backup@pbs proxmox-backup-manager acl update /datastore/pve-lab DatastoreBackup --auth-id 'pve-backup@pbs!pve1' proxmox-backup-manager user permissions 'pve-backup@pbs!pve1' --path /datastore/pve-labAdd PBS storage in Proxmox VE
In Proxmox VE, open Datacenter → Storage → Add → Proxmox Backup Server. Use your lab values or the example values.
- ID pbs-lab. Server 192.168.1.20. Datastore pve-lab. Leave the namespace at root for this example.
- Username pve-backup@pbs!pve1. In Password, paste the token secret. The PBS datastore name and the PVE storage ID serve different purposes.
- For a self-signed certificate, read the SHA-256 fingerprint from the PBS console and enter it in Fingerprint on PVE. Verify it through a trusted source, especially if it changes.
Terminalproxmox-backup-manager cert info | grep FingerprintRun the fingerprint command on PBS. Storage pbs-lab should then appear active in Proxmox VE.
Run and schedule backups
In Proxmox VE, open a VM → Backup → Backup now, select pbs-lab and start a Snapshot backup. Snapshot mode can back up a running VM.
- On PVE, confirm the task succeeded. On PBS, open pve-lab → Content and check that the backup group and its timestamp appear.
- In Datacenter → Backup → Add, select pbs-lab and the VMs or containers to protect. An example schedule is daily at 02:00. Manage retention on PBS and avoid a second deletion policy on PVE.
Terminalpvesm status --storage pbs-lab vzdump 100 --storage pbs-lab --mode snapshotRun this block on Proxmox VE. Replace 100 with the ID of your test VM.
Set retention, cleanup and verification
In the PBS datastore, schedule maintenance separately from backups. Adapt the examples to available storage and check task logs.
- Prune decides which versions to keep. An example is a daily 04:00 job retaining 7 daily, 4 weekly and 3 monthly versions. Preview the policy with the simulator before applying it.
- Garbage Collection reclaims space from unreferenced chunks. Schedule it after pruning, for example weekly. A safety grace period can delay when disk space is freed.
- Under Verify Jobs, schedule regular checks of new backups and reverification at least monthly. Review job results and configure failure notifications.
Restore a test VM
In Proxmox VE, select pbs-lab → Backups, pick a snapshot and click Restore. Give the copy an unused ID such as 900 and destination storage with enough space.
- Leave automatic startup disabled for the copy. Before starting it, disconnect its NIC or attach it to an isolated bridge to prevent conflicts with the original VM.
- Check that the copy boots, open some files and test at least one service. If you enable PVE-side encryption, keep the recovery key off-host. You need it to read encrypted backups.
- If storage is unavailable, check TCP 8007 and the fingerprint. If authentication succeeds but a backup fails, check ACLs, group ownership and available space on PBS.