mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00: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
|
# 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"
|
touch "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update"
|
||||||
chmod 777 "/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
|
fi
|
||||||
|
|
||||||
# Do the Backup check
|
# Do the Backup check
|
||||||
|
|
|
||||||
|
|
@ -301,6 +301,11 @@
|
||||||
"name": "nextcloud_aio_elasticsearch",
|
"name": "nextcloud_aio_elasticsearch",
|
||||||
"location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch",
|
"location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch",
|
||||||
"writeable": true
|
"writeable": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nextcloud_aio_redis",
|
||||||
|
"location": "/mnt/redis",
|
||||||
|
"writeable": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"secrets": [
|
"secrets": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue