[pve-devel] [PATCH pve-manager 2/2] lxc: options: add PBS change detecion mode selector

Christian Ebner c.ebner at proxmox.com
Wed Nov 15 16:59:11 CET 2023


Add selector to switch between default and metadata based change
detection mode for backups using PBS as backend.

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 www/manager6/lxc/Options.js | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index d0a53fc7..61b38d6a 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -141,6 +141,25 @@ Ext.define('PVE.lxc.Options', {
 	    hookscript: {
 		header: gettext('Hookscript'),
 	    },
+	    pbs_change_detection_mode: {
+		header: gettext('PBS change detection mode'),
+		defaultValue: 'data',
+		editor: caps.vms['VM.Config.Options'] ? {
+		    xtype: 'proxmoxWindowEdit',
+		    subject: gettext('PBS change detection mode'),
+		    items: {
+			xtype: 'proxmoxKVComboBox',
+			name: 'pbs_change_detection_mode',
+			deleteEmpty: true,
+			value: '__default__',
+			comboItems: [
+			    ['__default__', "Default"],
+			    ['metadata', "Metadata"],
+			],
+			fieldLabel: gettext('Mode'),
+		    },
+		} : undefined,
+	    },
 	};
 
 	var baseurl = 'nodes/' + nodename + '/lxc/' + vmid + '/config';
-- 
2.39.2






More information about the pve-devel mailing list