Automate protection flags in PBS?


Jul 8, 2021
quick question regarding backup protection inside the PBS: Is there a way to automatically schedule that a specific amount of backups will be marked with the protection flag automatically (for example "set the 2 most recent backups as protected" and automatically set/remove the flag when new backups are created)? I only found the option to limit the amount of protected backups per user.

Thank you in advance!
No, but you could script that yourself with the scripting lanuage of your choice using VZDump hook scripts and the PBS API.
Last edited:
  • Like
Reactions: AraToken


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!