Use vzdump hooks from GUI

sledz

New Member
Oct 12, 2016
3
0
1
Is it possible to use a vzdump hook file when starting backups from the GUI using the Backup Now button?
 
Is it possible to use a vzdump hook file when starting backups from the GUI using the Backup Now button?

no.

the root@pam user can start backup jobs over the API including the hook script parameter, but regular users cannot (for obvious reasons).
 
But the root@pam user can also start backup jobs using the Backup Now button from the GUI.

And from my point of view there's no argument against making hook scripts available here too.
 
But the root@pam user can also start backup jobs using the Backup Now button from the GUI.

And from my point of view there's no argument against making hook scripts available here too.

yes there is: we try to not clutter the GUI with all available options ;) especially not with ones that are only usable with one user (there are tons of these by the way, it's not limited to vzdump).

if you are logged in as root on the GUI, you can simply open the included shell and call vzdump manually. as root, you can also set a global default hook script in /etc/vzdump.conf on each node - the options set there are used unless explicitly overridden via API/CLI parameters, so this allows setting a hook script for all backup jobs run by all users, which only root can manually override.
 
  • Like
Reactions: sledz
as root, you can also set a global default hook script in /etc/vzdump.conf on each node - the options set there are used unless explicitly overridden via API/CLI parameters, so this allows setting a hook script for all backup jobs run by all users, which only root can manually override.

OK, I've got it. And this global setting will do all we need.

Thx
 

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!