π§° Overview
This guide walks through setting up a Proxmox Backup Server (PBS) VM, creating a ZFS-backed datastore, and configuring encrypted backups from your Proxmox node.
1. π₯οΈ Create PBS VM in Proxmox
Resources Assigned
- CPU: 2 vCPU
- RAM: 4GB (minimum)
- Disk 1: 32GB OS (can be on local-lvm)
- Disk 2: Backup storage disk (e.g. 500GB from zfs-ssd)
Installation Steps
- Download the PBS ISO and upload it to your Proxmox ISO storage.
- Create a new VM:
- Use the PBS ISO
- Attach the secondary virtual disk for backups (e.g.
zfs-ssd-pbs-zvol
)
- Boot into the installer and follow the on-screen steps to install PBS on Disk 1.
2. π§± Create PBS Datastore
Once inside the PBS VM:
Format and Mount Backup Disk
Assuming your secondary disk is /dev/sdb
:
# Inside PBS VM
lsblk # Confirm disk name (e.g. sdb)
# Format with ext4
mkfs.ext4 /dev/sdb
# Create mount point and mount
mkdir -p /mnt/datastore
mount /dev/sdb /mnt/datastore
# Make it permanent
echo '/dev/sdb /mnt/datastore ext4 defaults 0 1' >> /etc/fstab
Create Datastore in PBS UI
- Open PBS Web UI:
https://<pbs-ip>:8007
- Go to
Datastore
βAdd Datastore
- Path:
/mnt/datastore
- Name:
zfs-ds01
3. π Add PBS Storage with Encryption
- Go to
Datacenter β Storage β Add
- In the General tab:
- Set ID (e.g.,
pbs-backup
) - Enter PBS Server IP, Username (e.g.,
root@pam
), and Password - Copy the Fingerprint from the PBS web UI (
Dashboard β Show Fingerprint
)
- Set ID (e.g.,
- Under Encryption, select “Auto-generate a client encryption key”
- Save the generated key in a secure external location
- Click Add to save the storage config
The key will be stored in:
/etc/pve/priv/storage/<storage-id>.enc
β οΈ Backup this file externally. Without it, you cannot restore encrypted backups.
4. π¦ Create and Run Backup
- Create a backup job from
Datacenter β Backup β Add
- Change Storage to
pbs-backup
, select which VMs to include - Set Mode to
Snapshot
, and choose a schedule - Either wait for the schedule to run or click Run Now to take the first backup
You should see entries like:
vm/102/2025-06-18T21:15:42Z (encrypted)
5. πΎ Restore an Encrypted Backup
- Select the PBS storage from the Proxmox node,
- Select a backup and click “Restore”
- Assign a new VM ID (or overwrite)
- PBS will automatically use the matching
.enc
key if available
If restoring on a different node, copy the .enc
key to:
/etc/pve/priv/backup/