[Helper] Do not use full network name for MySQL backup

master
André 2018-10-23 11:07:27 +02:00
parent 68f2a1c5fc
commit 5347009fbb
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ function backup() {
mysql|all) mysql|all)
SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE}) SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
docker run --rm \ docker run --rm \
--network $(docker network ls -qf name=${CMPS_PRJ}_mailcow-network) \ --network $(docker network ls -qf name=${CMPS_PRJ}_) \
-v $(docker volume ls -qf name=${CMPS_PRJ}_mysql-vol-1):/var/lib/mysql/ \ -v $(docker volume ls -qf name=${CMPS_PRJ}_mysql-vol-1):/var/lib/mysql/ \
--entrypoint= \ --entrypoint= \
-v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \ -v ${BACKUP_LOCATION}/mailcow-${DATE}:/backup \