moving backup server

Zappy

Member
Mar 30, 2022
89
13
13
Hi ,
need to move backup server from server1 to server2
all my backup client point to pbs.mydomain.com (server1)

so here what i am planning :
  1. Install pbs on server2
  2. rsync data from server1 to server2
  3. shutdown server1 and rename/reip to server2
will all the API token move as well , or i need to move all the file in /eyc/proxmox-backup. as well ?
just want to verify if my plan make sense
 
I am taking the chance to see if anybody have any comment before trying this on my own.
 
rsync data from server1 to server2
Be careful not to break your datastores by it, at least stop the proxmox-backup systemd services so nothing writes to the datastore during the move. If you use ZFS create a snapshot of your datastore and copy it with zfs send/receive to ensure consistency. The best option for syncing data between two PBS btw is to just use the internal sync mechanism. Why don't you use that? It's propably more simple than any manual transfer method (be it zfs or rsync).

will all the API token move as well , or i need to move all the file in /eyc/proxmox-backup. as well ?

You will need to copy the content of /etc/proxmox-backup to have the same settings, so yes.
 
  • Like
Reactions: UdoB
Be careful not to break your datastores by it, at least stop the proxmox-backup systemd services so nothing writes to the datastore during the move. If you use ZFS create a snapshot of your datastore and copy it with zfs send/receive to ensure consistency. The best option for syncing data between two PBS btw is to just use the internal sync mechanism. Why don't you use that? It's propably more simple than any manual transfer method (be it zfs or rsync).
I think about that , but i was not sure if it act as a backup or as a replica
in the latter , this would be the best solution.
You will need to copy the content of /etc/proxmox-backup to have the same settings, so yes.
Thanks
 
so just to close the loop and for those who want ot it,
i did the move successfully , but with some small quirks.....
I dont know if it was me or expected.
Server 1 : PBS V3.x
Server 2 : PBS V4.x
in summary :
  1. Built and configure second server , specialy the datastore
  2. Establish a sync job push between Server 1 (original) and Server 2
  3. Tar /etc/proxmox-backup on server 1
  4. Copy the tar to server2
  5. Shutdown Server 1
  6. Untar the file on server 2 (overriding everting in /etc/proxmox-backup)
  7. Change the IP and name of server 2 to match server1
  8. Reboot server 2
  9. Test
The little quirks so far :

  • Had to update the path in /etc/proxmox-backup/datastore.cfg
    i think this one is more on my side , since i should have match the server 1 , but no big deal , was an easy fix
  • For some reason the backup was all Own by root@pam
    I am guessing the reason was because at the time of doing the sync job , the proper ower was not set....
    easy fix as well , i quickly change all the owner appropriately (i use different API token and access for each client)
If this help someone , cool!
let me know if any question
Thanks

Note: Special thanks to @Johannes S
Notes: Backup your /etc/proxmox-backup :P
 
Last edited:
  • Like
Reactions: AlexHK and mason64