PVE/PBS Backup/Restore/Delete Permissions

Mar 20, 2024
6
0
1
Hey everyone,

We’re in a situation where we’d like to give a group of admins the ability to back up and restore their own VMs, but not the ability to delete backups from the repository.

I haven’t been able to configure the permissions to make that work. Is it safe to say that if users have the ability to back up/restore, they will also have the ability to delete backups?

If it’s not possible to achieve the above, an alternative would be to allow file-level restores without giving them full VM backup/restore permissions.

However, it seems that to view the backups on disk, they need the Datastore.AllocateSpace and VM.Backup permissions, where I thought Datastore.Audit would be enough. Is there something I’m missing here?
 
In order to keep users from accessing each other's backups, each needs to be assigned to their own namespace. Note: one downside to this is that the namespace is a level of granularity for PBS deduplication, so if there is a lot of shared data between users, your dedupe rate will not be as effective.

Then, give each user DatastoreBackup and DatastoreReader Access Roles, and set the path to their namespace under the backup datastore.

They should then only see their own backups, and be able to restore/audit/verify, but not delete, those backups.
 
  • Like
Reactions: ManFriday
you can't backup and restore from PBS.

you need create a PBS user with only backup rights which used PVE side when adding PBS to PVE, this will prevent any deletions from PVE.

+ You PVE user require some rights too, to datastore, to all or specific VMs id, like privileges VM.Backup, Datastore.Audit to allow File Restore.
 

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!