How to move existing PBS to new installation?

jnkraft

Member
Mar 30, 2021
10
4
23
37
I have PBS+PVE(VM with Bacula for file-level backup) server with one host-lv for datastore and another host-lv passed as physical disk to Bacula VM.
OS is installed on mdadm raid1 HDDs, i want to do a clean installation on SSD raid on the same hardware server. Moving PVE-part to fresh installation is simple and obvious, but what about moving PBS-part? Will https://pbs.proxmox.com/docs/configuration-files.html moving this files be enough to transfer existing PBS setup and settings to the new OS?
 
No, while moving these config files is a good starting point, you will have to also move all the files for each datastore found under its backing path, while keeping the ownership and permission information, to fully reconfigure your PBS.

Not sure about your current setup though, you have a VM which runs PVE and PBS on the same virtual host? I would recommend against co-installations of PVE and PBS, as this might cause issues during upgrades.
 
No, while moving these config files is a good starting point, you will have to also move all the files for each datastore found under its backing path, while keeping the ownership and permission information, to fully reconfigure your PBS.

Not sure about your current setup though, you have a VM which runs PVE and PBS on the same virtual host? I would recommend against co-installations of PVE and PBS, as this might cause issues during upgrades.
Hi Chris, thanks for your answer!

Rightnow datastore lives on lvm on remote iscsi (temporary solution), so my guess just readding iscsi-target to new installation with same paths would do the trick? Later datastore will be migrated to local storage via lvm pvmove.

PBS and PVE are co-installed on a physical host. Main role is PBS, PVE instance exists only to host VM with Bacula server. I upgraded this server several times from 7.3 to current 8.1 with no single issue. Main reason of doing fresh installation - long time ago this server was a part of PVE cluster, and there are some mess and scraps of pve configs and ZFS pools that existed on this node before.