From fb556ae0ad7e2bb4e0ab47858765cb2457748d11 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Mon, 1 Aug 2022 21:32:37 +0200
Subject: [PATCH] Rate-limit progress reports

---
 templates/backup-standalone.j2 | 1 +
 templates/backup-vm.j2         | 1 +
 2 files changed, 2 insertions(+)

diff --git a/templates/backup-standalone.j2 b/templates/backup-standalone.j2
index 375a965..4ae8c63 100755
--- a/templates/backup-standalone.j2
+++ b/templates/backup-standalone.j2
@@ -17,6 +17,7 @@ echo "Hooks done"
 	# restic backend
 	source /etc/backup-client/restic.env
 
+	export RESTIC_PROGRESS_FPS=1
 	restic backup \
 		{{ restic_combined_flags }} \
 		--verbose \
diff --git a/templates/backup-vm.j2 b/templates/backup-vm.j2
index 79438f3..160118c 100755
--- a/templates/backup-vm.j2
+++ b/templates/backup-vm.j2
@@ -121,6 +121,7 @@ set -euo pipefail
 {% if backup_backend == 'restic' %}
 		# restic backend
 		source /etc/backup-client/restic.env
+		export RESTIC_PROGRESS_FPS=1
 		restic backup \
 			{{ restic_combined_flags }} \
 			--verbose \
-- 
GitLab