diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index bacfa1b5..7640d441 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -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 diff --git a/php/containers.json b/php/containers.json index b603fe09..76247dd3 100644 --- a/php/containers.json +++ b/php/containers.json @@ -178,7 +178,13 @@ "REDIS_HOST_PASSWORD=%REDIS_PASSWORD%", "TZ=%TIMEZONE%" ], - "volumes": [], + "volumes": [ + { + "name": "nextcloud_aio_redis", + "location": "/data", + "writeable": true + } + ], "secrets": [ "REDIS_PASSWORD", "ONLYOFFICE_SECRET" @@ -295,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": [