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 title | On yes |
|---|---|
| PBS 2 BACKUP | Creates pbs2-etc-backup-<date>.tar.gz with the contents of /etc/proxmox-backup in the directory you started the script from. |
| PBS 3 SOURCES | Overwrites /etc/apt/sources.list with bookworm, bookworm-updates and bookworm-security (main contrib). |
| PBS3-ENTERPRISE | Overwrites /etc/apt/sources.list.d/pbs-enterprise.list with the entry commented out. |
| PBS3-NO-SUBSCRIPTION | Writes /etc/apt/sources.list.d/pbs-install-repo.list with the bookworm pbs-no-subscription entry. |
| PBS3 TEST | Writes /etc/apt/sources.list.d/pbstest-for-beta.list with the pbstest entry commented out. |
| PBS 3 UPDATE | apt-get update, then DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" dist-upgrade -y. |
| REBOOT | Reboots the host. |
Environment variables
| Variable | Default | Purpose |
|---|---|---|
COMMUNITY_SCRIPTS_CORE_URL | https://raw.githubusercontent.com/community-scripts/core/main | Base URL the script loads api/api.func from. |
Limits
- The only check is the architecture: on
arm64the 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-backuponly; it stays on the same host, so copy it elsewhere before you continue. - Saying
noto the sources steps butyesto PBS 3 UPDATE runs a normal upgrade within the current release.