forked from Corsinvest/cv4pve-autosnap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script-hook.bat
45 lines (43 loc) · 1.75 KB
/
script-hook.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@ECHO OFF
REM SPDX-License-Identifier: GPL-3.0-only
REM SPDX-FileCopyrightText: 2019 Copyright Corsinvest Srl
REM
REM Corsinvest automatic snapshot for Proxmox VE cv4pve-autosnap hook script.
REM Process environment variables as received from and set by cv4pve-autosnap.
ECHO ----------------------------------------------------------
ECHO CV4PVE_AUTOSNAP_PHASE: %CV4PVE_AUTOSNAP_PHASE%
ECHO CV4PVE_AUTOSNAP_VMID: %CV4PVE_AUTOSNAP_VMID%
ECHO CV4PVE_AUTOSNAP_VMNAME: %CV4PVE_AUTOSNAP_VMNAME%
ECHO CV4PVE_AUTOSNAP_VMTECHNOLOGY: %CV4PVE_AUTOSNAP_VMTECHNOLOGY%
ECHO CV4PVE_AUTOSNAP_LABEL: %CV4PVE_AUTOSNAP_LABEL%
ECHO CV4PVE_AUTOSNAP_KEEP: %CV4PVE_AUTOSNAP_KEEP%
ECHO CV4PVE_AUTOSNAP_VMSTATE: %CV4PVE_AUTOSNAP_VMSTATE%
ECHO CV4PVE_AUTOSNAP_SNAP_NAME: %CV4PVE_AUTOSNAP_SNAP_NAME%
ECHO CV4PVE_AUTOSNAP_DEBUG: %CV4PVE_AUTOSNAP_DEBUG%
ECHO CV4PVE_AUTOSNAP_DRY_RUN: %CV4PVE_AUTOSNAP_DRYRUN%
ECHO CV4PVE_AUTOSNAP_DURATION %CV4PVE_AUTOSNAP_DURATION%
ECHO CV4PVE_AUTOSNAP_STATE %CV4PVE_AUTOSNAP_STATE%
IF "%CV4PVE_AUTOSNAP_PHASE%"=="clean-job-start" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="clean-job-end" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-job-start" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-job-end" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-create-pre" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-create-post" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-create-abort" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-remove-pre" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-remove-post" (
REM
) ELSE IF "%CV4PVE_AUTOSNAP_PHASE%"=="snap-remove-abort" (
REM
) ELSE (
ECHO "unknown phase '$CV4PVE_AUTOSNAP_PHASE'"
EXIT 1
)