The-Network-Crew / Proxmox-VE-for-WHMCS

Proxmox VM/CT Module for the WHMCS Automation & Billing System.
https://marketplace.whmcs.com/product/6935-proxmox-ve-for-whmcs#reviews
GNU General Public License v3.0
146 stars 46 forks source link

Client-level VM/CT Backup Management - Configurable via usage (vzdump) #39

Open jbrouhard98 opened 1 year ago

jbrouhard98 commented 1 year ago

Clients may want to have the ability to create/manage their backups, or even restore from a previous backup themselves.

lsthompson commented 1 year ago

We support the idea. This makes sense to do.

https://pve.proxmox.com/wiki/Backup_and_Restore https://pve.proxmox.com/pve-docs/chapter-vzdump.html

Need to explore a bunch of things:

jbrouhard98 commented 1 year ago

From experience granting a user access to PVE Realm:

The end user can absolutely trigger their own backups, and i have confirmed they can restore directly if they have the permissions of VM.Backup, VM.Snapshot. and VM.Snapshot.Rollback. To view the repo,they need Datastore.AllocateSpace, Datastore.AllocateTemplate and Datastore.Audit just to be able to view the datastores.

As for backups visible... I think it's possible if you query the datastore, and look for vzdump-qemu-{VMID}-[[[date]]].vma.zst. Querying for the VMID and matching it to the client's VM ID should be sufficient?

Default backup is "snapshot"

lsthompson commented 1 year ago

I like your thought process there. Modules Garden are pushing hard now that we're around:

https://www.modulesgarden.com/products/whmcs/proxmox-ve-vps#changelog

There are some key things it does which I'd like to see parity with.