Replicate two PBS servers

kazi

Member
Jan 18, 2024
61
1
8
I have two PBS servers (PBS01 and PBS02). I want to replicate PBS02 data to PBS01. How do I setup?

I added PBS02 to PBS01 using Configuration--->Remote
But don't understand how to replicate PBS02.


Thanks
Kazi
 
Click your Datastore in PBS.
That gives you a bunch of tabs on the right.
If you haven't been through them, click your way through the tabs and understand them.
Review the Garbage Collection and Pruning Jobs.
Review the Verify Job.
And once you have your maintenance jobs configured, click the Sync Job tab and create one.
 
I am seeing this error

Code:
<code>
2024-09-01T06:19:42-04:00: Syncing datastore 'backup', root namespace into datastore 'sgoc-pbs', root namespace
2024-09-01T06:19:42-04:00: found 37 groups to sync (out of 37 total)
2024-09-01T06:19:42-04:00: sync group vm/100 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/101 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/102 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/103 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/104 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/105 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/106 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/107 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/108 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/109 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/110 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/111 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/112 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/113 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/114 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/115 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/116 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/117 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/118 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/119 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/120 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/121 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/122 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/123 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/124 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/125 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/126 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/127 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: sync group vm/128 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:42-04:00: skipped: 6 snapshot(s) (2024-08-23T03:40:35Z .. 2024-08-29T00:01:09Z) - older than the newest local snapshot
2024-09-01T06:19:42-04:00: re-sync snapshot vm/129/2024-08-30T00:00:55Z
2024-09-01T06:19:42-04:00: no data changes
2024-09-01T06:19:42-04:00: percentage done: 81.08% (30/37 groups)
2024-09-01T06:19:42-04:00: skipped: 6 snapshot(s) (2024-08-23T05:36:23Z .. 2024-08-29T00:01:13Z) - older than the newest local snapshot
2024-09-01T06:19:42-04:00: re-sync snapshot vm/130/2024-08-30T00:01:11Z
2024-09-01T06:19:42-04:00: no data changes
2024-09-01T06:19:42-04:00: percentage done: 83.78% (31/37 groups)
2024-09-01T06:19:43-04:00: skipped: 6 snapshot(s) (2024-08-23T03:40:04Z .. 2024-08-29T00:01:54Z) - older than the newest local snapshot
2024-09-01T06:19:43-04:00: re-sync snapshot vm/131/2024-08-30T00:01:47Z
2024-09-01T06:19:43-04:00: no data changes
2024-09-01T06:19:43-04:00: percentage done: 86.49% (32/37 groups)
2024-09-01T06:19:43-04:00: skipped: 6 snapshot(s) (2024-08-23T03:40:09Z .. 2024-08-29T00:02:14Z) - older than the newest local snapshot
2024-09-01T06:19:43-04:00: re-sync snapshot vm/132/2024-08-30T00:02:07Z
2024-09-01T06:19:43-04:00: no data changes
2024-09-01T06:19:43-04:00: percentage done: 89.19% (33/37 groups)
2024-09-01T06:19:43-04:00: skipped: 6 snapshot(s) (2024-08-23T03:51:30Z .. 2024-08-29T00:17:56Z) - older than the newest local snapshot
2024-09-01T06:19:43-04:00: re-sync snapshot vm/133/2024-08-30T00:18:18Z
2024-09-01T06:19:43-04:00: no data changes
2024-09-01T06:19:43-04:00: percentage done: 91.89% (34/37 groups)
2024-09-01T06:19:43-04:00: skipped: 6 snapshot(s) (2024-08-23T03:40:41Z .. 2024-08-29T00:01:22Z) - older than the newest local snapshot
2024-09-01T06:19:43-04:00: re-sync snapshot vm/134/2024-08-30T00:01:07Z
2024-09-01T06:19:43-04:00: no data changes
2024-09-01T06:19:43-04:00: percentage done: 94.59% (35/37 groups)
2024-09-01T06:19:43-04:00: sync group vm/135 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:43-04:00: sync group vm/136 failed - owner check failed (root@pam != admin@pbs)
2024-09-01T06:19:43-04:00: Finished syncing namespace , current progress: 36 groups, 0 snapshots
2024-09-01T06:19:43-04:00: TASK ERROR: sync failed with some errors.
</code>
 
You made an account called "admin" in the pbs realm.
That account owns a number of the backups to be synced.
In order to view backup ownership, go to the datastore's content tab and take a look. Do this on both servers.
I'm unclear if this account exists on both PBS servers. It either needs to, or you need to adjust ownership in the sync job.
 
Go back to your PBS server and click on the datastore.
Click back through all the tabs on the right.
Study what they do. Look at the options. Understand it.

After you've familiarized yourself with the interface a bit more, go to the Content tab.
Look at all the options here as well.
Right next to the ownership icon, you'll see a trashcan icon.
if you click it, PBS will offer to "forget" this backup.

It's understandable that you need help. That's ok.
But you need to read the link that @UdoB posted and the help links in the app itself.
if you do more research before you post, you'll get better help.
 

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!