mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-06 05:24:37 +08:00
fix restoring of addional bakup dirs
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
2b05939f17
commit
b22c239998
1 changed files with 5 additions and 5 deletions
|
@ -225,6 +225,11 @@ if [ "$BORG_MODE" = restore ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Save Additional Backup dirs
|
||||||
|
if [ -f "/nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/additional_backup_directories" ]; then
|
||||||
|
ADDITIONAL_BACKUP_DIRECTORIES="$(cat /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/additional_backup_directories)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Restore everything except the configuration file
|
# Restore everything except the configuration file
|
||||||
if ! rsync --stats --archive --human-readable -vv --delete \
|
if ! rsync --stats --archive --human-readable -vv --delete \
|
||||||
--exclude "nextcloud_aio_mastercontainer/session/"** \
|
--exclude "nextcloud_aio_mastercontainer/session/"** \
|
||||||
|
@ -243,11 +248,6 @@ if [ "$BORG_MODE" = restore ]; then
|
||||||
# Save current path
|
# Save current path
|
||||||
BORG_LOCATION="$(jq '.borg_backup_host_location' /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/configuration.json)"
|
BORG_LOCATION="$(jq '.borg_backup_host_location' /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/configuration.json)"
|
||||||
|
|
||||||
# Save Additional Backup dirs
|
|
||||||
if [ -f "/nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/additional_backup_directories" ]; then
|
|
||||||
ADDITIONAL_BACKUP_DIRECTORIES="$(cat /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/additional_backup_directories)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Save current nextcloud datadir
|
# Save current nextcloud datadir
|
||||||
if grep -q '"nextcloud_datadir":' /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/configuration.json; then
|
if grep -q '"nextcloud_datadir":' /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/configuration.json; then
|
||||||
NEXTCLOUD_DATADIR="$(jq '.nextcloud_datadir' /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/configuration.json)"
|
NEXTCLOUD_DATADIR="$(jq '.nextcloud_datadir' /nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/configuration.json)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue