Skip to content

Commit 2502d22

Browse files
authored
Merge pull request #2697 from nextcloud/enh/noid/add-borg-progress
borg - add progress to initial Backup
2 parents 8c2b131 + 9a207ea commit 2502d22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Containers/borgbackup/backupscript.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ if [ "$BORG_MODE" = backup ]; then
137137
# auto,zstd compression seems to has the best ratio based on:
138138
# https://forum.level1techs.com/t/optimal-compression-for-borg-backups/145870/6
139139
BORG_OPTS=(-v --stats --compression "auto,zstd" --exclude-caches)
140+
if [ "$NEW_REPOSITORY" = 1 ]; then
141+
BORG_OPTS+=(--progress)
142+
fi
140143

141144
# Exclude the nextcloud log and audit log for GDPR reasons
142145
BORG_EXCLUDE=(--exclude "/nextcloud_aio_volumes/nextcloud_aio_nextcloud/data/nextcloud.log*" --exclude "/nextcloud_aio_volumes/nextcloud_aio_nextcloud/data/audit.log")

0 commit comments

Comments
 (0)