From d1c403999f0cdd1363cc4f64b86591ff132d0412 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Tue, 8 Dec 2020 17:13:23 +0800 Subject: [PATCH] Reduce console output in sample crontab/systemd service files. As borgmatic will log to syslog in the sample crontab/systemd service files, this makes console output redundant. (cron will mail any console output to the root user; systemd will log any console output to syslog.) This adds --verbosity -1 to both files to reduce console output to the minimum. --- sample/cron/borgmatic | 2 +- sample/systemd/borgmatic.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/cron/borgmatic b/sample/cron/borgmatic index 23e4fd862..35f9bfe65 100644 --- a/sample/cron/borgmatic +++ b/sample/cron/borgmatic @@ -1,3 +1,3 @@ # You can drop this file into /etc/cron.d/ to run borgmatic nightly. -0 3 * * * root PATH=$PATH:/usr/bin:/usr/local/bin /root/.local/bin/borgmatic --syslog-verbosity 1 +0 3 * * * root PATH=$PATH:/usr/bin:/usr/local/bin /root/.local/bin/borgmatic --verbosity -1 --syslog-verbosity 1 diff --git a/sample/systemd/borgmatic.service b/sample/systemd/borgmatic.service index 12e75a841..7a3b5cf2b 100644 --- a/sample/systemd/borgmatic.service +++ b/sample/systemd/borgmatic.service @@ -55,4 +55,4 @@ LogRateLimitIntervalSec=0 # Delay start to prevent backups running during boot. Note that systemd-inhibit requires dbus and # dbus-user-session to be installed. ExecStartPre=sleep 1m -ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --syslog-verbosity 1 +ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --verbosity -1 --syslog-verbosity 1