Installation & configuration
Create VM / install PBS
VM spec:
DiskSize: 10GB CPU : 2 core 1 socket Memory : 2GB
ISO install Proxmox backup server ISO install. Follow install, nothing special to set
Configuration
Configure VM datastore for PBS data
By default you can't mount this directly, nor can you create a direct datastore and mount to the VM. So we need to use a Directory Mapping instead.
Log into the web UI
Setup Directory mapping
Datacenter > Directory Mappings > Add
Name: vault-vm-backups Path: /vault/vm_backups
Update the VM mount the mapping
Select the VM > Hardware > Add > Virtiofs
DirectoryId: vault-vm-backups
Reboot the VM
Mount within the VM
SSH into the VM
Check the virtiofs mount was recognised by the VM ok
dmesg | grep -i virtiofs
You should see the name of the virtiofs ID that was added earlier
vault-vm-backupsMount everything
mkdir -p /mnt/backup-data mount -t virtiofs vault-vm-backups /mnt/backup-data vi /etc/fstab # Add the following so it mounts automatically vault-vm-backups /mnt/backup-data virtiofs defaults 0 0
Configure PBS
Log into the web UI
Datastore > Add datastore
Setup with properties
Name : Backups BackingPath : /mnt/backup-data PruneJobConfig: Keep last 4, keep 5 daily, keep 4 weekly, keep 2 monthly, keep 1 yearly
Select the datastore created > options > Verify new snapshots
Enable
Setup the backup user to limit access between PVE and PBS
Configuration > Access Control > Add
User : proxmox Password: Add one [Save to password manager as this will be forgotten in time]
Configuration > Access Control > Permissions > Add > User permission
Path: /datastore User: proxmox@pbs Role: Datastore admin
Get the certificate fingerprint for PVE registration
- Configuration > Certificates
- Copy the finger print for next section
Configure PVE to use PBS
Log into the web UI
Setup the Proxmox backup connection
Datacenter > Storage > Add Proxmox Backup Server
ID : vault-vm-backup Server : <IP to PBS> Username : proxmox@pbs Password : <proxmox@pbs password> Datastore : Backups (the datastore created within PBS) Fingerprint: <pbs fingerprint copied earlier>
Setup backup schedule
Datacenter > Backups > Edit backup job
Storage : vault-vm-backup Schedule : '23:00' Selection mode: Include selected VMs [Unselect anything you don't want AND unselect PBS to avoid recursion backup]
Test backup is working
- Datacenter > Backups > Backup now
Note: The first backup is full (not incremental), any VM shutdown is always full backup, only online VMs that have at least one full backup will have incremental backups taken
