[pve-devel] [PATCH manager 07/12] vzdump: add support for bzip2 compression
Filip Schauer
f.schauer at proxmox.com
Wed Apr 9 16:24:18 CEST 2025
This aligns with the PVE::Storage::BACKUP_EXT_RE_2 regex.
Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
---
PVE/VZDump.pm | 2 ++
www/manager6/form/BackupCompressionSelector.js | 1 +
2 files changed, 3 insertions(+)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 58fa0f64..06a887a3 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -879,6 +879,8 @@ sub compressor_info {
$zstd_threads = int(($cpuinfo->{cpus} + 1)/2);
}
return ("zstd --threads=${zstd_threads}", 'zst');
+ } elsif ($opt_compress eq 'bzip2') {
+ return ('bzip2', 'bz2');
} else {
die "internal error - unknown compression option '$opt_compress'";
}
diff --git a/www/manager6/form/BackupCompressionSelector.js b/www/manager6/form/BackupCompressionSelector.js
index 014b8f7e..df2091f3 100644
--- a/www/manager6/form/BackupCompressionSelector.js
+++ b/www/manager6/form/BackupCompressionSelector.js
@@ -6,5 +6,6 @@ Ext.define('PVE.form.BackupCompressionSelector', {
['lzo', 'LZO (' + gettext('fast') + ')'],
['gzip', 'GZIP (' + gettext('good') + ')'],
['zstd', 'ZSTD (' + gettext('fast and good') + ')'],
+ ['bzip2', 'BZIP2 (' + gettext('good') + ')'],
],
});
--
2.39.5
More information about the pve-devel
mailing list