Replacing PBS and moving old backups in it

cglmicro

Member
Oct 12, 2020
101
11
23
51
Hi all.

I have a PBS with one datastore in it that contains about 4Tb of backups for a few VM and CONTAINERS.

I want to upgrade to a new server with more storage, and MOVE the content of the datastore to it. Any procedure/tuto to help me do it?

Thanks.
 
I just posted about this, I was hoping to get some help as well.

You could try the Remote/Sync Jobs in the UI, I tried to do that, but got some permission issues
 
Install and configure the new server and then add the old server as a remote and pull the data to the new server with a sync job.

I tried that and got some permission errors.


2022-08-25T18:20:07-04:00: Could not query remote for namespaces (404) -> temporarily switching to backwards-compat mode
2022-08-25T18:20:07-04:00: Either make backwards-compat mode explicit (max-depth == 0) or upgrade remote system.
2022-08-25T18:20:07-04:00: ----
2022-08-25T18:20:07-04:00: Syncing datastore NUC_PBS, root namespace into datastore NUC_PBS, root namespace
2022-08-25T18:20:07-04:00: found 23 groups to sync
2022-08-25T18:20:07-04:00: percentage done: 4.35% (1/23 groups)
2022-08-25T18:20:07-04:00: sync group ct/103 failed - Permission denied (os error 13)
2022-08-25T18:20:07-04:00: percentage done: 4.42% (1/23 groups, 1/62 snapshots in group #2)
2022-08-25T18:20:07-04:00: sync group ct/104 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 8.77% (2/23 groups, 1/59 snapshots in group #3)
2022-08-25T18:20:08-04:00: sync group ct/106 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 17.39% (4/23 groups)
2022-08-25T18:20:08-04:00: sync group ct/130 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 17.46% (4/23 groups, 1/63 snapshots in group #5)
2022-08-25T18:20:08-04:00: sync group ct/251 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 26.09% (6/23 groups)
2022-08-25T18:20:08-04:00: sync group ct/252 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 26.16% (6/23 groups, 1/62 snapshots in group #7)
2022-08-25T18:20:08-04:00: sync group ct/300 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 30.56% (7/23 groups, 1/35 snapshots in group #8)
2022-08-25T18:20:08-04:00: sync group ct/606 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 34.85% (8/23 groups, 1/62 snapshots in group #9)
2022-08-25T18:20:08-04:00: sync group vm/100 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 39.20% (9/23 groups, 1/64 snapshots in group #10)
2022-08-25T18:20:08-04:00: sync group vm/101 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 43.55% (10/23 groups, 1/63 snapshots in group #11)
2022-08-25T18:20:08-04:00: sync group vm/102 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 47.90% (11/23 groups, 1/63 snapshots in group #12)
2022-08-25T18:20:08-04:00: sync group vm/103 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 52.26% (12/23 groups, 1/52 snapshots in group #13)
2022-08-25T18:20:08-04:00: sync group vm/105 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 56.60% (13/23 groups, 1/54 snapshots in group #14)
2022-08-25T18:20:08-04:00: sync group vm/107 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 60.91% (14/23 groups, 1/115 snapshots in group #15)
2022-08-25T18:20:08-04:00: sync group vm/108 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 65.30% (15/23 groups, 1/56 snapshots in group #16)
2022-08-25T18:20:08-04:00: sync group vm/110 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 71.74% (16/23 groups, 1/2 snapshots in group #17)
2022-08-25T18:20:08-04:00: sync group vm/115 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 78.26% (18/23 groups)
2022-08-25T18:20:08-04:00: sync group vm/200 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 82.61% (19/23 groups)
2022-08-25T18:20:08-04:00: sync group vm/201 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 86.96% (20/23 groups)
2022-08-25T18:20:08-04:00: sync group vm/202 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 87.08% (20/23 groups, 1/35 snapshots in group #21)
2022-08-25T18:20:08-04:00: sync group vm/250 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 91.43% (21/23 groups, 1/35 snapshots in group #22)
2022-08-25T18:20:08-04:00: sync group vm/500 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: percentage done: 95.78% (22/23 groups, 1/34 snapshots in group #23)
2022-08-25T18:20:08-04:00: sync group vm/502 failed - Permission denied (os error 13)
2022-08-25T18:20:08-04:00: TASK ERROR: sync failed with some errors.
 
Last edited:
Did you setup identical users and tokens on both servers? New datastore is owned by "backup:backup"?
 
Did you setup identical users and tokens on both servers? New datastore is owned by "backup:backup"?
I don't think the second part is explain too much, I haven't seen any tutorials how to really do this.


User = root

Tokens = no

New datastore is owned by "backup:backup"? - not sure how to do this, currently the datastore is owned by root.
 
I don't think the second part is explain too much, I haven't seen any tutorials how to really do this.


User = root

Tokens = no

New datastore is owned by "backup:backup"? - not sure how to do this, currently the datastore is owned by root.
Not completely sure. I see PBS creating both here. Some is owned by user "root", some by user "backup".
 
I just posted about this, I was hoping to get some help as well.

You could try the Remote/Sync Jobs in the UI, I tried to do that, but got some permission issues
Why on earth didn't I think of that! Thanks.
I did the setup and my new server is filling up as I'm writting these lines. Will get back with my results. No FAILED for now.
Thanks !!
 
Why on earth didn't I think of that! Thanks.
I did the setup and my new server is filling up as I'm writting these lines. Will get back with my results. No FAILED for now.
Thanks !!
Okay so I managed to get something going, I installed a new PBS, changed the name of the host and datastore.

Created a Remote/Sync Job and currently copying the backups over.
 

Attachments

  • PBS Sync.JPG
    PBS Sync.JPG
    116.9 KB · Views: 13
  • Like
Reactions: Bengt Nolin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!