rss logo

Step-by-Step Guide: Installing and Configuring Proxmox Backup Server for Secure VM Backups

Humorous meme showing Veeam Backup crying while Proxmox Backup Server takes over

So we've seen how to get rid of Broadcom VMware in these series of brilliant tutorials: the installation of Proxmox PVE here, the creation of virtual machines in this article and also the full procedure of the migration of VMware ESXi virtual machines to Proxmox: here.

But what about the backup? Is it possible to also get rid of Veeam Backup? Well, Proxmox also offers a turnkey solution for backing up a Proxmox VE environment. I've got nothing against Veeam Backup for now, but I see a slow drift, as we've seen with other software: the move to subscription-based licensing and increasingly cumbersome software. So it could be a good idea to change your backup solution now, and that's precisely the aim of this tutorial: to talk about setting up Proxmox Backup Server, the official backup solution for Proxmox VE.

Architecture overview

Let's say we are in an architecture with one Proxmox VE where some virtual machines are running. We will install the Proxmox Backup Server on another machine in the same network.

Diagram showing backup flow from Proxmox VE to Proxmox Backup Server using PBS datastore

Installation

Download the ISO

As with Proxmox Virtual Environment we need to download the ISO from the official Proxmox web site: https://www.proxmox.com/en/downloads. From there we have to download the Proxmox Backup Server ISO Installer.

Proxmox official downloads page showing Proxmox Backup Server 3.4 ISO with download button highlighted

Next, you can either burn a CD (do we still do that?), use a USB tool like Rufus, create a bootable drive with dd on Unix-like systems, or mount the ISO via iDRAC Enterprise Manager if installing on a Dell server (which is my case!). Many examples of media preparation on the official wiki: https://pve.proxmox.com/.

Installing Proxmox Backup Server

Let's move on to installation. As with Proxmox VE, this is a fairly straightforward process.

  • Once started on our media, the Proxmox welcome menu should appear. Select Install Proxmox Backup Server (Graphical):
Proxmox Backup Server 3.4 boot menu with graphical installation option selected
  • Read the EULA if you have the time and accept by clicking on I agree:
End User License Agreement screen during Proxmox Backup Server installation
  • Select the target hard disk and click on Next:
Select target hard disk for installing Proxmox Backup Server
  • Enter country and select time zone and keyboard layout:
Set country, time zone and keyboard layout during Proxmox Backup Server installation
  • Set a strong password for the root user and enter an e-mail address:
Define root password and email address during PBS installation process
  • Select the physical network card and IP configuration you wish to give to the management interface:
Network configuration step for Proxmox Backup Server installation
  • Check the information displayed and click on Install to start Proxmox VE installation. Once installation is complete, the system automatically reboots:
Installation summary screen for Proxmox Backup Server
  • Once restarted, Proxmox Backup Server will prompt you to connect to the web interface on the address you defined earlier and on port 8007:
Proxmox Backup Server console with URL to web interface

Connecting to the Web interface

  • Open a web browser and access the Proxmox administration interface using the address you specified above:
Web login screen of Proxmox Backup Server

Post Installation

Add No-Subscription repository

If, like me, you don't have a subscription, you may want to disable enterprise repositories (which needs valid licensing) and enable no-subscription repositories.

Note: For companies, it's recommended to have a valid subscription.

  • Go to Administration. In the Repositories menu, click on the enterprise repository line and click to the Disable button:
Disabling the enterprise repository in Proxmox Backup Server GUI
  • Click the Add button:
Add button highlighted to configure a new APT repository
  • Select No-Subscription and click Add:
Select no-subscription repository in dropdown list
  • Go to the Shell menu and run an upgrade:
root@host:~# apt update && apt full-upgrade
Terminal command to update and upgrade packages using APT
  • Then create a /backup folder in which the backups will be placed:
root@host:~# mkdir /backup

Add backup user

For security reasons, we don't want to use the root user to make backups, so we'll create a user with restrictive rights dedicated to this task.

  • Go to Access Control menu and click on Add:
Add new user in PBS access control panel
  • Enter a username, set a complex password and click on Add:
PBS user creation form with filled fields

Add Datastore

Now we need to declare a datastore in order to indicate to Proxmox Backup Server where to put the data.

  • Click on Add Datastore:
Add Datastore button highlighted in PBS interface
  • Give the datastore a name and specify the path, here /datastore/backup for our /backup folder previously created:
Form to add a new datastore with path and name
  • Select the newly added datastore. In the Permissions tab, click Add > User Permission:
Add user permission to a PBS datastore
  • Select newly created backup@pbs as user. For role, select DatastoreBackup for minimum rights:
Assign user and role to PBS datastore
  • Finally, go to the newly declared datastore and click on Show Connection Information:
PBS datastore summary with Show Connection Information highlighted
  • It will print all the information we will need to add the datastore to our Proxmox VE:
Pop-up with PBS connection details including fingerprint and hostname

Proxmox VE

Add PBS

We are now going to declare our Proxmox Backup Server datastore to our Proxmox VE.

  • Connect to your Proxmox VE web interface and go to Storage. From there click on Add > Proxmox Backup Server:
Add Proxmox Backup Server as a storage in Proxmox VE interface
  • Set the following information based on the data retrieved earlier:
    • Name: Define a name of your choice.
    • Server: IP or name of the PBS server. Note that you can specify the TCP port.
    • Username and Password: Enter the ids of the backup user previously set.
    • Datastore: The name of our PBS datastore.
    • Fingerprint: Copy and paste the Fingerprint of the PBS server.
Form to add Proxmox Backup Server with ID, IP, user and fingerprint
  • Optionally (but recommended) you can set Encryption in order to protect your backup. Select Auto-generate and click on Add:
Select auto-generate encryption key option during PBS storage creation
  • Follow recommendations by saving the key:
Save, copy or download encryption key for PBS secure backup access
  • You should now be able to back up any virtual machine to your Proxmox Backup Server:
Manual backup of VM to PBS storage from Proxmox VE interface

Schedule Backup

Now it's time to configure our backup in order to automatically save our virtual machines.

  • Navigate to Datacenter > Backup and click on Add:
Add button to create new scheduled backup job in Proxmox VE
  • Create a Backup Job with the following parameters:
    • Storage: the Proxmox Backup Server previously set.
    • Schedule: Here for example, every day at 2:00 AM.
    • Selection mode: VMs that are selected.
Form to schedule VM backup with PBS target, time and selection
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Contact :

contact mail address