Moving a configuration from one Proxmox Backup to another

Moving a configuration from one Proxmox Backup to another

In some cases, it's necessary to migrate a Proxmox Backup Server to another physical host (installing it as a virtual machine is not recommended due to management and performance issues). With just a few commands, it's possible to move the entire configuration and certificates.

Only Linux accounts (outside of the PBS) and mount points are not retained. These will need to be recreated, along with any automatic mount scripts if necessary.

First, the initial step is to reinstall the new server in a standard manner.

Once that's done, connect via SSH to both the old and new servers, and install the rsync package.

apt install rsync

From the old server, then initiate the transfer of configuration files to the new server.

rsync -avzh /etc/proxmox-backup/* root@IP_SRV:/etc/proxmox-backup/
rsync -avzh /var/lib/proxmox-backup/* root@IP_SRV:/var/lib/proxmox-backup/
Replace IP_SRV with the IP address of the new server

Once finished, restart the server. The final steps are:

  • Change the IP address if necessary
  • Define local Linux accounts (if any)
  • Recreate the folders used as mount points for storing backups.
  • Recreate the lines in fstab for automatic mounting of backup storage