From 960cc9d42feec494e7141cb37f7e1c5031127200 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Sun, 26 Aug 2018 17:04:49 +0200 Subject: [PATCH] Execute restic verbose fore better loggig --- usr/local/sbin/restic_backup.sh | 5 ++++- usr/local/sbin/restic_check.sh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/usr/local/sbin/restic_backup.sh b/usr/local/sbin/restic_backup.sh index 9e1c9fa..8e86dd4 100644 --- a/usr/local/sbin/restic_backup.sh +++ b/usr/local/sbin/restic_backup.sh @@ -46,6 +46,7 @@ wait $! # --one-file-system makes sure we only backup exactly those mounted file systems specified in $BACKUP_PATHS, and thus not directories like /dev, /sys etc. # --tag lets us reference these backups later when doing restic-forget. restic backup \ + --verbose \ --one-file-system \ --tag $BACKUP_TAG \ $BACKUP_EXCLUDES \ @@ -56,6 +57,7 @@ wait $! # See restic-forget(1) or http://restic.readthedocs.io/en/latest/060_forget.html # --group-by only the tag and path, and not by hostname. This is because I create a B2 Bucket per host, and if this hostname accidentially change some time, there would now be multiple backup sets. restic forget \ + --verbose \ --tag $BACKUP_TAG \ --group-by "paths,tags" \ --keep-daily $RETENTION_DAYS \ @@ -66,7 +68,8 @@ wait $! # Remove old data not linked anymore. # See restic-prune(1) or http://restic.readthedocs.io/en/latest/060_forget.html -restic prune & +restic prune \ + --verbose & wait $! # Check repository for errors. diff --git a/usr/local/sbin/restic_check.sh b/usr/local/sbin/restic_check.sh index 3cb0efe..776e7a7 100644 --- a/usr/local/sbin/restic_check.sh +++ b/usr/local/sbin/restic_check.sh @@ -25,5 +25,6 @@ source /etc/restic/b2_env.sh #wait $! # Check repository for errors. -restic check & +restic check \ + --verbose & wait $!