mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 10:42:21 +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;
|
$task->{vmtype} = $vmtype;
|
||||||
|
|
||||||
if ($self->{opts}->{pbs}) {
|
if ($opts->{tmpdir}) {
|
||||||
$task->{tmpdir} = "/var/tmp/vzdumptmp$$"; #fixme
|
|
||||||
} elsif ($opts->{tmpdir}) {
|
|
||||||
$task->{tmpdir} = "$opts->{tmpdir}/vzdumptmp$$";
|
$task->{tmpdir} = "$opts->{tmpdir}/vzdumptmp$$";
|
||||||
|
} elsif ($self->{opts}->{pbs}) {
|
||||||
|
$task->{tmpdir} = "/var/tmp/vzdumptmp$$"; #fixme
|
||||||
} else {
|
} else {
|
||||||
# dumpdir is posix? then use it as temporary dir
|
# dumpdir is posix? then use it as temporary dir
|
||||||
my $info = get_mount_info($opts->{dumpdir});
|
my $info = get_mount_info($opts->{dumpdir});
|
||||||
|
Loading…
Reference in New Issue
Block a user