Possible to synchronize only one backup between two pbs server?

Dark26

Renowned Member
Nov 27, 2017
290
31
68
48
Bonjour,

We have one PBS ( PBS1 ) on one site synchronize to another PBS ( PBS2 ) one another site.

Instance running on the first site doesn't have access to the PBS on the other site.

Only 2 pbs are on the same network.

we have a small retention on site 1 , and a big on the second site for emergency.

If we want to restore an old backup , we have to synchronize in the other way, from site 2 to site 1.

We can make a filter form synchronize only the instance we want, but i can't find how to synchronize only one backup, and not all the backup we have for the instance.

The filter option is only for the group. not for the backup itself

Any idea?
 
there are currently no snapshot filters like that. you can sync on PBS 2 into a new namespace (since namespaces share a chunk store, this should be really fast), and then prune the group in that namespace so that only the desired snapshot remains, and then sync back to PBS 1 from that pruned copy.
 
there are currently no snapshot filters like that. you can sync on PBS 2 into a new namespace (since namespaces share a chunk store, this should be really fast), and then prune the group in that namespace so that only the desired snapshot remains, and then sync back to PBS 1 from that pruned copy.
The idea is great . But ( in the web page, maybe in command line we can do it ), we can't synchronise 2 namespace on the same datastore. We have to select another datastore, and in this case all the data will be read/write again.:(

But if it was possible, it would be a great idea ideed. :rolleyes:
 
Well. I had the pbs serveur himself to the pbs remote and it seems to works.
 
Well. I had the pbs serveur himself to the pbs remote and it seems to works.
yeah, sorry, forgot to mention that this workaround is needed at the moment (defining the local PBS as "remote").
 
  • Like
Reactions: Dark26
Its's works but a have a little inconvenient :

pbs1 ns1 backup : A, B , C, D

synchro every day on pbs2 with a bigger retention. --> pbs ns1 backup : A,, B, C, D, E, F, G ....

i wanted tu push back the backup ( G for exemple ) to PBS 1 , in order to have pbs1 ns1 backup : A, B , C, D, G

But i have the message

Code:
2025-06-17T13:28:45+02:00: Found 1 groups to sync (out of 1 total)
2025-06-17T13:28:45+02:00: skipped: 1 snapshot(s) (2025-04-27T01:14:02Z) - older than the newest snapshot present on sync target

it doesn't want to push back the backup G to the source because it's older . ( indeed it is.)

if the namespace of the destination is empty ( no backup on it ) , it's working, but not is there is new backup...
 
yes, this is how sync works at the moment - it would be dangerous to allow users to arbitrarily create back-dated snapshots:

https://bugzilla.proxmox.com/show_bug.cgi?id=5939

we do plan on implementing it, but it will likely be guarded with a new privilege or something similar.
 
  • Like
Reactions: Dark26