mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 16:18:25 +00:00
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
648696b50b
commit
01fc36722d
@ -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…
Reference in New Issue
Block a user