From 80b267d6e5da5ddb1ae641fc8902c39526aa0a9a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 17 Dec 2021 20:19:30 -0600 Subject: [PATCH] r/burp: Enable progress counter for ad-hoc runs Before the `burp` tool gained the `-Q` option, the only way to disable the progress counter was through the configuration file. Since we do not want any output from automatic backups (except of course catastrophic failures), since it would end up being e-mailed by cron, the progress counter had to be disabled globally. This meant that on-demand runs on a terminal could not have a progress counter, which was pretty disappointing. Now that `burp` has `-Q`, this is no longer the case. Scheduled backups can run with `-Q`, but ad-hoc runs can omit it to get a progress counter. --- roles/burp-client/files/burp-backup.cron | 2 +- roles/burp-client/templates/burp.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/burp-client/files/burp-backup.cron b/roles/burp-client/files/burp-backup.cron index fab9a80..7a003b8 100644 --- a/roles/burp-client/files/burp-backup.cron +++ b/roles/burp-client/files/burp-backup.cron @@ -1 +1 @@ -18,48 * * * * root /usr/sbin/burp -a t +18,48 * * * * root /usr/sbin/burp -a t -Q diff --git a/roles/burp-client/templates/burp.conf.j2 b/roles/burp-client/templates/burp.conf.j2 index ed63eee..25c075b 100644 --- a/roles/burp-client/templates/burp.conf.j2 +++ b/roles/burp-client/templates/burp.conf.j2 @@ -16,7 +16,7 @@ cname = {{ burp_cname }} pidfile = /var/run/burp.client.pid syslog = 1 stdout = 1 -progress_counter = 0 +progress_counter = 1 # Ratelimit throttles the send speed. Specified in Megabits per second (Mb/s). # ratelimit = 1.5 # Network timeout defaults to 7200 seconds (2 hours).