From a2fab11a4696f5e5ed1f5f119ebf0abdeaee3ddb Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 1 Dec 2017 11:43:23 +0100 Subject: [PATCH] fix #1570: fix template backup with pigz when using pigz the resulting commandline would look like: pigz -p 4>file which resulted in pigz erroring out because it got no parameter for -p (because the shell interpreted the 4>file as a file descriptor) this patch adds a space so that the resulting line is pigz -p 4 > file Signed-off-by: Dominik Csapak Reviewed-by: Thomas Lamprecht --- PVE/VZDump/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index a6308293..42680f85 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -274,7 +274,7 @@ sub archive { $outcmd = "exec:cat"; } - $outcmd .= ">$filename" if !$opts->{stdout}; + $outcmd .= " > $filename" if !$opts->{stdout}; my $cmd = ['/usr/bin/vma', 'create', '-v', '-c', $conffile]; push @$cmd, '-c', $firewall if -e $firewall;