From 9a207eab2908b16503f1c717d34de0c70a56c31f Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 7 Jun 2023 10:27:32 +0200 Subject: [PATCH] borg - add progress to initial Backup Signed-off-by: Simon L --- Containers/borgbackup/backupscript.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index a3b27b68..350aeb93 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -137,6 +137,9 @@ if [ "$BORG_MODE" = backup ]; then # auto,zstd compression seems to has the best ratio based on: # https://forum.level1techs.com/t/optimal-compression-for-borg-backups/145870/6 BORG_OPTS=(-v --stats --compression "auto,zstd" --exclude-caches) + if [ "$NEW_REPOSITORY" = 1 ]; then + BORG_OPTS+=(--progress) + fi # Exclude the nextcloud log and audit log for GDPR reasons BORG_EXCLUDE=(--exclude "/nextcloud_aio_volumes/nextcloud_aio_nextcloud/data/nextcloud.log*" --exclude "/nextcloud_aio_volumes/nextcloud_aio_nextcloud/data/audit.log")