Ensure the GUI uses the default 'compress' value in /etc/vzdump.conf for manual backups and Backup Jobs, matching vzdump CLI behavior.
Backup Jobs continue to use the cluster-wide default of 'zstd'. When a single node is selected, the job now uses that node's default 'compress' value from /etc/vzdump.conf. Fixes: https://bugzilla.proxmox.com/show_bug.cgi?id=6379 Signed-off-by: Nicolas Frey <[email protected]> --- www/manager6/dc/Backup.js | 21 +++++++++++++++++++++ www/manager6/window/Backup.js | 3 +++ 2 files changed, 24 insertions(+) diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js index 956a7cdf..7cca08ca 100644 --- a/www/manager6/dc/Backup.js +++ b/www/manager6/dc/Backup.js @@ -76,6 +76,27 @@ Ext.define('PVE.dc.BackupEdit', { if (mode === 'pool') { me.selectPoolMembers(); } + + let compressionSelector = me.lookup('compressionSelector'); + if (value !== undefined && value !== '' && value !== null) { + Proxmox.Utils.API2Request({ + url: `/nodes/${value}/vzdump/defaults`, + method: 'GET', + success: function (response, _) { + const data = response.result.data; + + if (data.compress !== undefined) { + compressionSelector.setValue(data.compress); + } + }, + failure: function (response, _) { + Ext.Msg.alert(gettext('Error'), response.htmlStatus); + }, + }); + } else { + // default value for cluster-wide backup + compressionSelector.setValue('zstd'); + } }, storageChange: function (f, v) { diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js index 65ec9659..cf6d4e4c 100644 --- a/www/manager6/window/Backup.js +++ b/www/manager6/window/Backup.js @@ -193,6 +193,9 @@ Ext.define('PVE.window.Backup', { PVE.Utils.unEscapeNotesTemplate(data['notes-template']), ); } + if (!initialDefaults && data.compress !== undefined) { + compressionSelector.setValue(data.compress); + } initialDefaults = true; -- 2.47.3 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
