PBS install + first backup lab
This lab gets you from a fresh PBS ISO to a working backup-and-restore loop. The output is a single VM you can back up, restore to a new ID, and verify.
Steps
1. Install PBS
Boot the PBS ISO and follow the installer. Use a separate disk (or partition) for the datastore — not the boot disk.
After install:
# From your laptop
ssh root@pbs.lab.local
pveversion -v | head -3
2. Create a datastore
In the PBS GUI: Administration → Storage / Disks → Datastore → Add.
Name: lab-store
Path: /datastore/hdd-1
Or via CLI:
proxmox-backup-manager datastore create lab-store /datastore/hdd-1
3. Add a prune schedule
proxmox-backup-manager datastore update lab-store \
--prune-sched 'Mon 02:00' \
--keep-daily 7 --keep-weekly 4 --keep-monthly 3
4. Add PBS to Proxmox
In PVE: Datacenter → Storage → Add → Proxmox Backup Server.
ID: pbs-lab
Server: pbs.lab.local
Datastore: lab-store
Username: backup@pbs
Password: <set on PBS>
Verify the connection (the fingerprint prompt appears on first add):
pvesm status
# Expected: pbs-lab listed and enabled
5. Schedule a backup
In PVE: Datacenter → Backup → Add.
Storage: pbs-lab
Schedule: daily 02:30
Selection: All
Mode: Snapshot
Compression: ZSTD
Trigger a one-off run for the lab:
vzdump 100 --storage pbs-lab --mode snapshot
6. Verify the backup
In PBS GUI → Datastore → lab-store → Backups → vm → 100 → list the snapshots. Confirm at least one snapshot is present with a recent timestamp.
7. Restore test
Restore the VM to a new ID (do not overwrite):
qmrestore <backup-id> 9999 --storage local-lvm
qm start 9999
Verify the restored VM is functional:
# Inside the restored VM
systemctl status
ping 8.8.8.8 -c 3
Stop and destroy the test restore:
qm stop 9999 && qm destroy 9999
Verification
- PBS GUI shows the snapshot in the datastore
- Restore produced a working VM with the original data
- The lab tested the full loop: backup, list, restore, verify
Cleanup
# On PBS, remove the test backup via the GUI
# Or via CLI:
proxmox-backup-manager backup delete lab-store vm/100/$(date +%Y-%m-%d)T* --ns pbs-lab