[SOLVED] Per VMs custom retention same config for remote sync ?

eisteed

Member
Jun 10, 2020
19
0
21
33
Hello, I'm using PBS for my home lab with another remote site server acting as PBS remote sync.
and I have custom retention per backup task/vms
One VM is kept 1 month / 1 week / 7 days
Others VMs are kept 7 days

On my remote sync I can only set a global retention configuration If I understand it correctly
Is there a way to keep the per task / per vm retention configuration without having to create a second datastore + second sync ?

Because if I remember correctly, not setting any retention option on my remote sync = everything is kept forever.
Thanks for your help
 
Last edited:
Use PBS 2.2 and namespaces, so you can run a prune/GC with different retention policies on each namespace on the remote PBS. Namespaces do provide a lot of flexibility :)
 
Oh thanks ! Didn't know about that new feature, I was still using PVE 7.1 and PBS 2.1

EDIT: Upgraded everthing to latest version, this is really powerful, a bit overkill for my needs, but I made it working.
Some pure datastore mirroring including deleting locally what's not existent anymore remotely would be much easier to use in some cases I guess.
Anyway thanks for the tip !
 
Last edited: