From 01fc36722d8ed89df43bb4dc90761ef008ea7955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 6 Aug 2020 16:03:03 +0200 Subject: [PATCH] vzdump: use configured tmpdir for PBS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instead of always using the default hard-coded one. otherwise, suspend mode container backups might run out of space even though the admin configured a big enough tmpdir. Signed-off-by: Fabian Grünbichler --- PVE/VZDump.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index f80faeff..82976aa4 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -742,10 +742,10 @@ sub exec_backup_task { $task->{vmtype} = $vmtype; - if ($self->{opts}->{pbs}) { - $task->{tmpdir} = "/var/tmp/vzdumptmp$$"; #fixme - } elsif ($opts->{tmpdir}) { + if ($opts->{tmpdir}) { $task->{tmpdir} = "$opts->{tmpdir}/vzdumptmp$$"; + } elsif ($self->{opts}->{pbs}) { + $task->{tmpdir} = "/var/tmp/vzdumptmp$$"; #fixme } else { # dumpdir is posix? then use it as temporary dir my $info = get_mount_info($opts->{dumpdir});