From 088d891569852a7acaa47d9ba290f80c47dcb287 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 22 Dec 2017 13:36:31 +1300 Subject: [PATCH] Fix env variables for mysql backup --- manuscript/recipies/nextcloud.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manuscript/recipies/nextcloud.md b/manuscript/recipies/nextcloud.md index 023150b..49bf673 100644 --- a/manuscript/recipies/nextcloud.md +++ b/manuscript/recipies/nextcloud.md @@ -49,13 +49,17 @@ MYSQL_ROOT_PASSWORD= MYSQL_DATABASE=nextcloud MYSQL_USER=nextcloud MYSQL_PASSWORD=set to something secure> +``` +Now create a **separate** nextcloud-db-backup.env file, to capture the environment variables necessary to perform the backup. (_If the same variables are shared with the mariadb container, they [cause]https://discourse.geek-kitchen.funkypenguin.co.nz/t/nextcloud-funky-penguins-geek-cookbook/254/3?u=funkypenguin) issues with database access_) + +```` # For database backup (keep 7 days daily backups) MYSQL_PWD= MYSQL_USER=root BACKUP_NUM_KEEP=7 BACKUP_FREQUENCY=1d -``` +```` ### Setup Docker Swarm