mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-28 08:29:20 +08:00
remove the redis database once a backup gets restored
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
882fd3be26
commit
79946a876c
2 changed files with 8 additions and 0 deletions
|
@ -337,6 +337,9 @@ if [ "$BORG_MODE" = restore ]; then
|
|||
# Add file to Nextcloud container so that it performs a fingerprint update the next time
|
||||
touch "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update"
|
||||
chmod 777 "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update"
|
||||
|
||||
# Delete redis cache
|
||||
rm -f "/mnt/redis/dump.rdb"
|
||||
fi
|
||||
|
||||
# Do the Backup check
|
||||
|
|
|
@ -301,6 +301,11 @@
|
|||
"name": "nextcloud_aio_elasticsearch",
|
||||
"location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch",
|
||||
"writeable": true
|
||||
},
|
||||
{
|
||||
"name": "nextcloud_aio_redis",
|
||||
"location": "/mnt/redis",
|
||||
"writeable": true
|
||||
}
|
||||
],
|
||||
"secrets": [
|
||||
|
|
Loading…
Reference in a new issue