From 6b91b9373892cb4494680b274d471bfd066fe849 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Oct 2018 10:10:13 -0600 Subject: [PATCH] Moved docker volume location vars earlier in script --- root/scripts/backup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index ea787c3..79be51f 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/backup.sh @@ -461,6 +461,12 @@ export logFile="$logFile" ### Export docker container startup timeout variable export COMPOSE_HTTP_TIMEOUT=${dockerStartTimeout} +## Get docker volume paths on filesystem +dockerVolumeMail=$(docker volume inspect -f '{{ .Mountpoint }}' ${COMPOSE_PROJECT_NAME}_vmail-vol-1) +dockerVolumeRspamd=$(docker volume inspect -f '{{ .Mountpoint }}' ${COMPOSE_PROJECT_NAME}_rspamd-vol-1) +dockerVolumePostfix=$(docker volume inspect -f '{{ .Mountpoint }}' ${COMPOSE_PROJECT_NAME}_postfix-vol-1) +dockerVolumeRedis=$(docker volume inspect -f '{{ .Mountpoint }}' ${COMPOSE_PROJECT_NAME}_redis-vol-1) +dockerVolumeCrypt=$(docker volume inspect -f '{{ .Mountpoint }}' ${COMPOSE_PROJECT_NAME}_crypt-vol-1) ### Create sqlDump temporary directory and sqlDumpFile name sqlDumpDir=$( mktemp -d )