]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: allow bandwidth limit for PBS backup too
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 20 Aug 2020 13:32:22 +0000 (15:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Aug 2020 13:54:54 +0000 (15:54 +0200)
QEMU handles it just as well as with VMA, so this was probably just
forgotten to implement for PBS.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/VZDump/QemuServer.pm

index e22246313fe50fa361bdd73f309bbf6bec92cc07..4640009066469ec69e68594706e7df97f023aebd 100644 (file)
@@ -538,6 +538,7 @@ sub archive_pbs {
            devlist => $devlist,
            'config-file' => $conffile,
        };
+       $params->{speed} = $opts->{bwlimit}*1024 if $opts->{bwlimit};
        $params->{fingerprint} = $fingerprint if defined($fingerprint);
        $params->{'firewall-file'} = $firewall if -e $firewall;
        if (-e $keyfile) {