[PVE-User] Per-VM backup hook scripts?

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Feb 11 15:52:49 CET 2020


Hi,

On 2/11/20 12:25 PM, Dmytro O. Redchuk wrote:
> Hi masters,
> 
> please is it possible to attach backup hook scripts on per-vm basics,
> via GUI or CLI?
> 

Currently you only can specify a hook script for a whole backup job.
Either by uncommenting and setting the node-wide "script: /path/to/script"
setting or passing the "--script" variable to a specific `vzdump` call.


Bur as the VMID gets passed to the backup script so you can do specific steps
or actions based on that. Also calling a specific per VM script is possible.

See:
/usr/share/doc/pve-manager/examples/vzdump-hook-script.pl

on a Proxmox VE installation for an example.

cheers,
Thomas



More information about the pve-user mailing list