vzdump: use configured tmpdir for PBS
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 <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
89416582f3
commit
e5313cb092
@ -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});
|
||||
|
Loading…
x
Reference in New Issue
Block a user