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