Execute restic verbose fore better loggig

This commit is contained in:
Erik Westrup
2018-08-26 17:04:49 +02:00
parent f50055f26a
commit 960cc9d42f
2 changed files with 6 additions and 2 deletions

View File

@@ -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.

View File

@@ -25,5 +25,6 @@ source /etc/restic/b2_env.sh
#wait $!
# Check repository for errors.
restic check &
restic check \
--verbose &
wait $!