]> git.proxmox.com Git - pve-guest-common.git/commitdiff
vzdump: schema: add 'notes-template' and 'protected' properties
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 7 Apr 2022 10:05:39 +0000 (12:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 08:45:59 +0000 (10:45 +0200)
In command_line(), notes are printed, quoted, but otherwise as is,
which is a bit ugly for multi-line notes. But it is part of the
commandline, so print it.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/VZDump/Common.pm

index 83d74139e4bbb73a29b361ef8a8caacd3d4c8ee4..d8c78c4760bcb9fd0ead2da58316ae0342ca6f2b 100644 (file)
@@ -233,7 +233,22 @@ my $confdesc = {
        type => 'string',
        description => 'Backup all known guest systems included in the specified pool.',
        optional => 1,
-    }
+    },
+    'notes-template' => {
+       type => 'string',
+       description => "Template string for generating notes for the backup(s). It can contain ".
+           "variables which will be replaced by their values. Currently supported are ".
+           "{{cluster}}, {{guestname}}, {{node}}, and {{vmid}}, but more might be added in the ".
+           "future.",
+       requires => 'storage',
+       optional => 1,
+    },
+    protected => {
+       type => 'boolean',
+       description => "If true, mark backup(s) as protected.",
+       requires => 'storage',
+       optional => 1,
+    },
 };
 
 sub get_confdesc {