
Proxmox Backup Server is an open-source backup solution that backs up virtual machines, containers, and physical hosts. It integrates with the Proxmox Virtual Environment platform to back up virtual machines and containers, supports both local and remote targets, and includes a web-based management interface for administering backups.
This article explains how to install Proxmox Backup Server on Debian 11. It covers setting the system hostname, adding the Proxmox repository, installing the package, serving the management interface through Nginx as a reverse proxy, securing it with a Let's Encrypt SSL certificate, and configuring the firewall.
Before you begin, you need to:
pbs.example.com to your server's public IP address.Proxmox Backup Server issues its self-signed certificate against the system hostname and uses it to identify the host in the management interface. Set the hostname to your subdomain before installing the package so that the generated certificate matches the address you use to reach the server.
Open the hostname file in a text editor.
Replace the contents with your subdomain.
Save and close the file.
Open the hosts file.
Add the following line to map the subdomain to the loopback address.
Save and close the file.
Reboot the server to apply the new hostname.
Verify that the system hostname matches your subdomain.
The output displays pbs.example.com.
Verify that the hostname resolves to the loopback address.
The output displays replies from 127.0.0.1.
Debian does not package Proxmox Backup Server, so the package comes from the Proxmox repository. The pbs-no-subscription repository provides the same packages as the enterprise repository without requiring a subscription key.
Download the repository signing key into the APT keyring.
Open the APT sources file.
Add the Proxmox Backup Server repository.
Save and close the file.
Refresh the package list.
Install the package.
The Postfix configuration wizard opens during installation. Select Internet with smarthost and accept the defaults for the remaining prompts.
Reboot the server.
Open the management interface in a web browser to verify the installation.
The browser warns about an untrusted certificate because Proxmox Backup Server generates a self-signed certificate during installation. Accept the warning to reach the login page.
The management interface listens on port 8007, which some networks block. Configuring Nginx as a reverse proxy serves the interface on the standard HTTP and HTTPS ports instead.
Install Nginx.
Create a virtual host file.
Add the following configuration. Replace pbs.example.com with your subdomain.
Save and close the file.
proxy_set_header Upgrade and Connection "upgrade": Allow the WebSocket connections that the interface uses for its console and live task output.client_max_body_size 0: Removes the upload size limit so that large backup operations are not truncated.Enable the virtual host by linking it into the enabled sites directory.
Test the configuration syntax.
The output displays syntax is ok and test is successful.
Reload Nginx to apply the configuration.
Open the interface in a web browser to verify that the proxy works.
Proxmox Backup Server uses a self-signed certificate by default, so browsers warn that no trusted certificate authority issued it. Certbot replaces that certificate with a free Let's Encrypt certificate on the Nginx virtual host.
Install Certbot and the Nginx plugin.
Issue and install the certificate. Replace pbs.example.com with your subdomain.
Certbot edits the virtual host to serve HTTPS and redirect HTTP traffic to it.
Open the interface over HTTPS to verify that the certificate is trusted.
Verify that automatic renewal works.
Debian ships without an active firewall. Enabling ufw restricts inbound traffic to SSH and the web ports that the management interface now uses.
Install ufw.
Allow SSH connections so that enabling the firewall does not end your session.
Allow HTTP and HTTPS connections.
Enable the firewall.
The command warns that it may disrupt existing SSH connections and asks for confirmation. Enter y to proceed.
Review the active rules.
The output displays SSH and Nginx Full with an ALLOW action.
You have successfully installed Proxmox Backup Server on Debian 11, served the management interface through Nginx as a reverse proxy, secured it with a Let's Encrypt SSL certificate, and restricted inbound traffic with a firewall. Add backup datastores and configure backup jobs from the management interface to start protecting your systems. For more information, visit the official Proxmox Backup Server documentation.
0 Comments
Be the first to comment and share your perspective with the community.