From a9b1bb5f0a639d51345e2735a9e376bbf18ee3ad Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 20 Feb 2017 15:56:14 +0100 Subject: backup.sh: Only display stats on console Keep cronjob mails or logfiles clean of stats. They can be viewed on demand with borg info. Signed-off-by: Florian Pritz --- backup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 9141131..e64c9bd 100755 --- a/backup.sh +++ b/backup.sh @@ -95,12 +95,11 @@ backup_borg() { --verbose --numeric-owner --compression lz4 - --stats --exclude-from "$TMPDIR/exclude-list-borg" ) if tty -s; then - options+=(--progress) + options+=(--progress --stats) fi borg create "${options[@]}" "$dst::backup-$(date "+%Y%m%d-%H%M%S")" "$src" -- cgit v1.2.3-24-g4f1b