[pve-devel] [PATCH guest-common 05/12] vzdump: add support for xz compression

Filip Schauer f.schauer at proxmox.com
Wed Apr 9 16:24:16 CEST 2025


Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
---
 src/PVE/VZDump/Common.pm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/PVE/VZDump/Common.pm b/src/PVE/VZDump/Common.pm
index 9e13faf..1e65047 100644
--- a/src/PVE/VZDump/Common.pm
+++ b/src/PVE/VZDump/Common.pm
@@ -158,7 +158,7 @@ my $confdesc = {
 	type => 'string',
 	description => "Compress dump file.",
 	optional => 1,
-	enum => ['0', '1', 'gzip', 'lzo', 'zstd', 'bzip2'],
+	enum => ['0', '1', 'gzip', 'xz', 'lzo', 'zstd', 'bzip2'],
 	default => '0',
     },
     pigz=> {
@@ -168,6 +168,13 @@ my $confdesc = {
 	optional => 1,
 	default => 0,
     },
+    xz => {
+	type => "integer",
+	description => "XZ threads. N=0 uses half of the available cores. N>1 uses N as the thread"
+	    ." count.",
+	optional => 1,
+	default => 0,
+    },
     zstd => {
 	type => "integer",
 	description => "Zstd threads. N=0 uses half of the available cores, if N is set to a value"
-- 
2.39.5





More information about the pve-devel mailing list