Merge pull request #6354 from nextcloud/revert-6307-enh/6301/borg-progress

Revert "borgbackup: always use the progress option when creating an archive"
This commit is contained in:
Simon L. 2025-04-29 11:45:25 +02:00 committed by GitHub
commit 5af54ebbe2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -185,7 +185,10 @@ if [ "$BORG_MODE" = backup ]; then
# Borg options
# 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" --progress)
BORG_OPTS=(-v --stats --compression "auto,zstd")
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" --exclude "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/lost+found")