Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com> --- Similar to the snapshot patch series, I have refrained from continuing the numbering. This should be harmonized in a follow-up patch.
examples/guest-example-hookscript.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/guest-example-hookscript.pl b/examples/guest-example-hookscript.pl index adeed59..19fe213 100755 --- a/examples/guest-example-hookscript.pl +++ b/examples/guest-example-hookscript.pl @@ -54,6 +54,20 @@ if ($phase eq 'pre-start') { print "$vmid stopped. Doing cleanup.\n"; +} elsif ($phase eq 'pre-restore') { + + # Phase 'pre-restore' will be executed before restoring a backup. (via UI or + # CLI) + + print "Restoring $vmid from backup.\n"; + +} elsif ($phase eq 'post-restore') { + + # Phase 'pre-restore' will be after before restoring a backup. (via UI or + # CLI) + + print "$vmid finished restoring from backup.\n"; + } else { die "got unknown phase '$phase'\n"; } -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel