public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too
@ 2020-08-20 13:32 Stefan Reiter
  2020-08-20 13:32 ` [pve-devel] [PATCH qemu-server 2/2] vzdump: show "reused" message even if nothing was transferred Stefan Reiter
  2020-08-20 13:55 ` [pve-devel] applied: [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Reiter @ 2020-08-20 13:32 UTC (permalink / raw)
  To: pve-devel

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index e222463..4640009 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -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) {
-- 
2.20.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] [PATCH qemu-server 2/2] vzdump: show "reused" message even if nothing was transferred
  2020-08-20 13:32 [pve-devel] [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too Stefan Reiter
@ 2020-08-20 13:32 ` Stefan Reiter
  2020-08-20 13:55   ` [pve-devel] applied: " Thomas Lamprecht
  2020-08-20 13:55 ` [pve-devel] applied: [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too Thomas Lamprecht
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Reiter @ 2020-08-20 13:32 UTC (permalink / raw)
  To: pve-devel

This still works even if all drives were clean. It then shows the very
magical line:

  INFO: backup was done incrementally, reused 34.00 GiB (100%)

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
---
 PVE/VZDump/QemuServer.pm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 4640009..e961960 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -430,13 +430,13 @@ my $query_backup_status_loop = sub {
 	my $zero_h = bytes_to_human($last_zero, 2);
 	$self->loginfo("backup is sparse: $zero_h (${zero_per}%) total zero data");
     }
+    if ($reused) {
+	my $reused_h = bytes_to_human($reused, 2);
+	my $reuse_per = int($reused * 100 / $last_total);
+	$self->loginfo("backup was done incrementally, reused $reused_h (${reuse_per}%)");
+    }
     if ($transferred) {
 	my $transferred_h = bytes_to_human($transferred, 2);
-	if ($reused) {
-	    my $reused_h = bytes_to_human($reused, 2);
-	    my $reuse_per = int($reused * 100 / $last_total);
-	    $self->loginfo("backup was done incrementally, reused $reused_h (${reuse_per}%)");
-	}
 	if ($duration) {
 	    my $mbps = $get_mbps->($transferred, $duration);
 	    $self->loginfo("transferred $transferred_h in $duration seconds ($mbps)");
-- 
2.20.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] applied: [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too
  2020-08-20 13:32 [pve-devel] [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too Stefan Reiter
  2020-08-20 13:32 ` [pve-devel] [PATCH qemu-server 2/2] vzdump: show "reused" message even if nothing was transferred Stefan Reiter
@ 2020-08-20 13:55 ` Thomas Lamprecht
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2020-08-20 13:55 UTC (permalink / raw)
  To: Proxmox VE development discussion, Stefan Reiter, pve-devel

On 20.08.20 15:32, Stefan Reiter wrote:
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] applied: [PATCH qemu-server 2/2] vzdump: show "reused" message even if nothing was transferred
  2020-08-20 13:32 ` [pve-devel] [PATCH qemu-server 2/2] vzdump: show "reused" message even if nothing was transferred Stefan Reiter
@ 2020-08-20 13:55   ` Thomas Lamprecht
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2020-08-20 13:55 UTC (permalink / raw)
  To: Proxmox VE development discussion, Stefan Reiter, pve-devel

On 20.08.20 15:32, Stefan Reiter wrote:
> This still works even if all drives were clean. It then shows the very
> magical line:
> 
>   INFO: backup was done incrementally, reused 34.00 GiB (100%)
> 
> Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
> ---
>  PVE/VZDump/QemuServer.pm | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-20 13:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 13:32 [pve-devel] [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too Stefan Reiter
2020-08-20 13:32 ` [pve-devel] [PATCH qemu-server 2/2] vzdump: show "reused" message even if nothing was transferred Stefan Reiter
2020-08-20 13:55   ` [pve-devel] applied: " Thomas Lamprecht
2020-08-20 13:55 ` [pve-devel] applied: [PATCH qemu-server 1/2] vzdump: allow bandwidth limit for PBS backup too Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal