mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #1513 from nextcloud/enh/noid/back-up-fts-volume
also back up the fulltextsearch volume
This commit is contained in:
commit
28919e27f3
2 changed files with 11 additions and 5 deletions
|
|
@ -66,7 +66,7 @@ if [ "$BORG_MODE" = backup ]; then
|
||||||
|
|
||||||
# Test that nothing is empty
|
# Test that nothing is empty
|
||||||
for directory in "${VOLUME_DIRS[@]}"; do
|
for directory in "${VOLUME_DIRS[@]}"; do
|
||||||
if [ -z "$(ls -A "$directory")" ]; then
|
if [ -z "$(ls -A "$directory")" ] && [ "$directory" != "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch" ]; then
|
||||||
echo "$directory is empty which is not allowed."
|
echo "$directory is empty which is not allowed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -258,13 +258,14 @@ if [ "$BORG_MODE" = restore ]; then
|
||||||
|
|
||||||
# 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_apache/caddy/"** \
|
||||||
|
--exclude "nextcloud_aio_elasticsearch" \
|
||||||
|
--exclude "nextcloud_aio_mastercontainer/caddy/"** \
|
||||||
--exclude "nextcloud_aio_mastercontainer/certs/"** \
|
--exclude "nextcloud_aio_mastercontainer/certs/"** \
|
||||||
|
--exclude "nextcloud_aio_mastercontainer/data/configuration.json" \
|
||||||
--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/data/configuration.json" \
|
--exclude "nextcloud_aio_mastercontainer/session/"** \
|
||||||
--exclude "nextcloud_aio_apache/caddy/"** \
|
|
||||||
--exclude "nextcloud_aio_mastercontainer/caddy/"** \
|
|
||||||
/tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes; then
|
/tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes; then
|
||||||
echo "Something failed while restoring from backup."
|
echo "Something failed while restoring from backup."
|
||||||
umount /tmp/borg
|
umount /tmp/borg
|
||||||
|
|
|
||||||
|
|
@ -290,6 +290,11 @@
|
||||||
"name": "%BORGBACKUP_HOST_LOCATION%",
|
"name": "%BORGBACKUP_HOST_LOCATION%",
|
||||||
"location": "/mnt/borgbackup",
|
"location": "/mnt/borgbackup",
|
||||||
"writeable": true
|
"writeable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nextcloud_aio_elasticsearch",
|
||||||
|
"location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch",
|
||||||
|
"writeable": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"secrets": [
|
"secrets": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue