summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-02-20 15:56:14 +0100
committerFlorian Pritz <bluewind@xinu.at>2017-02-20 15:56:14 +0100
commita9b1bb5f0a639d51345e2735a9e376bbf18ee3ad (patch)
treee0c4701be76de7b4078d6ac9d2441274dd878952
parent85b2390a737a2ac020070a0cf4f1c5fde14cc9d5 (diff)
downloadbin-a9b1bb5f0a639d51345e2735a9e376bbf18ee3ad.tar.gz
bin-a9b1bb5f0a639d51345e2735a9e376bbf18ee3ad.tar.xz
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 <bluewind@xinu.at>
-rwxr-xr-xbackup.sh3
1 files changed, 1 insertions, 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"