mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
borg: exclude lost+found directory from backup
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
25c580bca3
commit
0852b00cc8
1 changed files with 3 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ if [ "$BORG_MODE" = backup ]; then
|
||||||
fi
|
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")
|
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_INCLUDE=()
|
BORG_INCLUDE=()
|
||||||
|
|
||||||
# Exclude datadir if .noaiobackup file was found
|
# Exclude datadir if .noaiobackup file was found
|
||||||
|
|
@ -405,6 +405,7 @@ if [ "$BORG_MODE" = restore ]; then
|
||||||
--exclude "nextcloud_aio_mastercontainer/data/daily_backup_running" \
|
--exclude "nextcloud_aio_mastercontainer/data/daily_backup_running" \
|
||||||
--exclude "nextcloud_aio_mastercontainer/data/session_date_file" \
|
--exclude "nextcloud_aio_mastercontainer/data/session_date_file" \
|
||||||
--exclude "nextcloud_aio_mastercontainer/session/**" \
|
--exclude "nextcloud_aio_mastercontainer/session/**" \
|
||||||
|
--exclude "nextcloud_aio_nextcloud_data/lost+found" \
|
||||||
"${ADDITIONAL_RSYNC_EXCLUDES[@]}" \
|
"${ADDITIONAL_RSYNC_EXCLUDES[@]}" \
|
||||||
/tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes/; then
|
/tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes/; then
|
||||||
RESTORE_FAILED=1
|
RESTORE_FAILED=1
|
||||||
|
|
@ -459,6 +460,7 @@ if [ "$BORG_MODE" = restore ]; then
|
||||||
-o -path nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/daily_backup_running \
|
-o -path nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/daily_backup_running \
|
||||||
-o -path nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/session_date_file \
|
-o -path nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/session_date_file \
|
||||||
-o -path "nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/id_borg*" \
|
-o -path "nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/id_borg*" \
|
||||||
|
-o -path "nextcloud_aio_nextcloud_data/lost+found" \
|
||||||
"${ADDITIONAL_FIND_EXCLUDES[@]}" \
|
"${ADDITIONAL_FIND_EXCLUDES[@]}" \
|
||||||
\) \
|
\) \
|
||||||
| LC_ALL=C sort \
|
| LC_ALL=C sort \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue