Skip to main content
Community Scripts logo
Skip to Content
Tools & Add-onsPVE Tools

pbs3-upgrade

Upgrade a Proxmox Backup Server 2 host to version 3 by switching the APT sources to Debian 12 and running a dist-upgrade.

pbs3-upgrade.sh is a legacy helper for the step from Proxmox Backup Server 2 to 3. It is not listed on the website. For 3 to 4 use PBS 4 Upgrade.

Source: tools/pve/pbs3-upgrade.sh.

Run

In the shell of the Proxmox Backup Server 2 host, as root:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/pbs3-upgrade.sh)"

Prompts

After the text prompt Start the Update to Proxmox Backup Server 3 Script (y/n)? each step is a menu with yes and no. no skips that step only. Cancel or Esc ends the script.

Menu titleOn yes
PBS 2 BACKUPCreates pbs2-etc-backup-<date>.tar.gz with the contents of /etc/proxmox-backup in the directory you started the script from.
PBS 3 SOURCESOverwrites /etc/apt/sources.list with bookworm, bookworm-updates and bookworm-security (main contrib).
PBS3-ENTERPRISEOverwrites /etc/apt/sources.list.d/pbs-enterprise.list with the entry commented out.
PBS3-NO-SUBSCRIPTIONWrites /etc/apt/sources.list.d/pbs-install-repo.list with the bookworm pbs-no-subscription entry.
PBS3 TESTWrites /etc/apt/sources.list.d/pbstest-for-beta.list with the pbstest entry commented out.
PBS 3 UPDATEapt-get update, then DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" dist-upgrade -y.
REBOOTReboots the host.

Environment variables

VariableDefaultPurpose
COMMUNITY_SCRIPTS_CORE_URLhttps://raw.githubusercontent.com/community-scripts/core/mainBase URL the script loads api/api.func from.

Limits

  • The only check is the architecture: on arm64 the script exits with 1. It does not verify that the host runs Proxmox Backup Server, nor which version. Do not start it anywhere else.
  • No undo. The backup from the first step covers /etc/proxmox-backup only; it stays on the same host, so copy it elsewhere before you continue.
  • Saying no to the sources steps but yes to PBS 3 UPDATE runs a normal upgrade within the current release.