mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-15 21:47:05 +00:00
vzdump: don't use dirty bitmap when VM was off
There can't be a dirty bitmap when the VM was off, and if it was off we will also shut it down after the backup, so no point in creating one. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
0f6c69814b
commit
78179bda0f
@ -513,7 +513,8 @@ sub archive_pbs {
|
|||||||
$params->{encrypt} = JSON::false;
|
$params->{encrypt} = JSON::false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$params->{'use-dirty-bitmap'} = JSON::true if $qemu_support->{'pbs-dirty-bitmap'};
|
$params->{'use-dirty-bitmap'} = JSON::true
|
||||||
|
if $qemu_support->{'pbs-dirty-bitmap'} && $self->{vm_was_running};
|
||||||
|
|
||||||
$params->{timeout} = 60; # give some time to connect to the backup server
|
$params->{timeout} = 60; # give some time to connect to the backup server
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user