* [pve-devel] [PATCH pve-manager] fix #6379: apply vzdump.conf compress default to GUI.
@ 2025-09-29 14:35 Nicolas Frey
0 siblings, 0 replies; only message in thread
From: Nicolas Frey @ 2025-09-29 14:35 UTC (permalink / raw)
To: pve-devel
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 <n.frey@proxmox.com>
---
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
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-29 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-29 14:35 [pve-devel] [PATCH pve-manager] fix #6379: apply vzdump.conf compress default to GUI Nicolas Frey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox