mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-08 14:38:04 +08:00
borgbackup: always use the progress option when creating an archive
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
da0c3acb05
commit
a47be369e9
1 changed files with 1 additions and 4 deletions
|
@ -185,10 +185,7 @@ if [ "$BORG_MODE" = backup ]; then
|
||||||
# Borg options
|
# Borg options
|
||||||
# auto,zstd compression seems to has the best ratio based on:
|
# auto,zstd compression seems to has the best ratio based on:
|
||||||
# https://forum.level1techs.com/t/optimal-compression-for-borg-backups/145870/6
|
# https://forum.level1techs.com/t/optimal-compression-for-borg-backups/145870/6
|
||||||
BORG_OPTS=(-v --stats --compression "auto,zstd")
|
BORG_OPTS=(-v --stats --compression "auto,zstd" --progress)
|
||||||
if [ "$NEW_REPOSITORY" = 1 ]; then
|
|
||||||
BORG_OPTS+=(--progress)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Exclude the nextcloud log and audit log for GDPR reasons
|
# 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")
|
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")
|
||||||
|
|
Loading…
Add table
Reference in a new issue