mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-15 06:03:08 +00:00
enable dirty-bitmap incremental backups for PBS
The $total != $transferred check is changed to a log, as QEMU reports only actually transferred bytes, and it is indeed correct for incremental backups to have differing values from $total. The 'incremental' parameter is always set, QEMU will figure out if it should re-use an existing bitmap or create a new one on its own. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
fc701af740
commit
69e6289470
@ -7,6 +7,7 @@ use File::Basename;
|
||||
use File::Path;
|
||||
use IO::File;
|
||||
use IPC::Open3;
|
||||
use JSON;
|
||||
|
||||
use PVE::Cluster qw(cfs_read_file);
|
||||
use PVE::INotify;
|
||||
@ -295,7 +296,7 @@ my $query_backup_status_loop = sub {
|
||||
die (($status->{errmsg} || "unknown error") . "\n") if $res eq 'error';
|
||||
die "got unexpected status '$res'\n";
|
||||
} elsif ($total != $transferred) {
|
||||
die "got wrong number of transfered bytes ($total != $transferred)\n";
|
||||
$self->loginfo("backup was done incrementally");
|
||||
}
|
||||
last;
|
||||
}
|
||||
@ -396,6 +397,7 @@ sub archive_pbs {
|
||||
password => $password,
|
||||
devlist => $devlist,
|
||||
'config-file' => $conffile,
|
||||
incremental => JSON::true,
|
||||
};
|
||||
$params->{fingerprint} = $fingerprint if defined($fingerprint);
|
||||
$params->{'firewall-file'} = $firewall if -e $firewall;
|
||||
|
Loading…
Reference in New Issue
Block a user