Skip to main content

Proxmox Backup Server

Proxmox Backup Server (PBS)

Proxmox Backup Server is an enterprise backup solution, for backing up and restoring VMs, containers, and physical hosts.
This guide will walk you through installing PBS in a debian LXC on your Proxmox VE host and configuring it to export backups to an external drive.

Installing PBS

  1. Creating the LXC Container :
  • Create a new Debian Bookworm LXC container on your Proxmox VE host with the following requirements met :
    • 2 CPU cores
    • 2 GiB RAM
    • 8 GiB Storage space
  1. Installing PBS
  • Add PBS's package repository :
    wget -qO /usr/share/keyrings/proxmox-archive-keyring.gpg https://enterprise.proxmox.com/debian/proxmox-archive-keyring-bookworm.gpg
    
    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg] http://download.proxmox.com/debian/pbs \
      $(. /etc/os-release && echo "$VERSION_CODENAME") pbs-no-subscription" | \
      tee /etc/apt/sources.list.d/proxmox.list > /dev/null
    
  • Download and install proxmox backup server :
    apt update
    apt install proxmox-backup-server
    
    You can now access PBS WebUI at <pbs_host_IP>:8007

Create a Datastore

  1. On Proxmox's WebUi, navigate to PVE > Disks > ZFS and click Create: ZFS :

  2. Name and create your ZFS Storage :

  3. Create a ZFS Dataset from your PVE's host shell:

    zfs create <zfs_storage_name>/<dataset_name>
    
  4. Edit your PBS LXC's configuration under /etc/pve/lxc/<lxc_id>.conf and add the following line :

    mp0: /<zfs_storage_name>/<dataset_name>,mp=/mnt/datastore/pbs
    
  5. Fix your permissions to make the ZFS share usable by the LXC :

    chown -R 100000:100000 /<zfs_storage>
    chmod -R 750 /<zfs_storage>
    
  6. Reboot your LXC and log in the WebUI. Click on Add Datastore and create your Datastore by using the /mnt/datastore/pbs mountpoint :

  7. Finally, collect your connection information as you will need it later

Configure your PVE and PBS

  1. On your PVE's WebUI, navigate to Datacenter > Storage and add a new Proxmox Backup Server
  2. Configure your PBS using the connection information that you recovered earlier and click the Add button
  3. Create a backup job under Datacenter > Backup

    [!WARNING] Before running your backups, you need to make sure that your truenas's instance scsi drives are not inclueded in the backup.
    To do so, disable the backup option in your VM's hardware :

  4. Run your first backup :