From 116ded48c3b90ad39ef699c3d60062e2ab311065 Mon Sep 17 00:00:00 2001 From: SeekDaSky Date: Sun, 11 Mar 2018 16:38:28 +0100 Subject: [PATCH] backup all databases instead of just vhost --- docker-compose.yml | 4 +++- metactl/pre-stop.sh | 2 +- virtual/vhost | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d6dac62..74eb211 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,9 @@ services: MYSQL_USER: php MYSQL_PASSWORD: 4JB1dtbrIC8pT935 expose: - - '3306' + - '3306' + ports: + - 3307:3306 php-fpm: build: diff --git a/metactl/pre-stop.sh b/metactl/pre-stop.sh index d361a5a..0f539b2 100644 --- a/metactl/pre-stop.sh +++ b/metactl/pre-stop.sh @@ -15,5 +15,5 @@ test ! -d $ROOT/persistent && mkdir -p $ROOT/persistent; # 2. Backup database echo -ne " * Backup database..........."; -docker exec $MARIADB_SERVICE mysqldump -uroot -p$MARIADB_ROOT_PASSWORD $MARIADB_DATABASE_NAME > $MARIADB_DUMP; +docker exec $MARIADB_SERVICE mysqldump --all-databases -uroot -p$MARIADB_ROOT_PASSWORD > $MARIADB_DUMP; test "$?" = "0" && echo "done" || (echo "failed"; exit 1); \ No newline at end of file diff --git a/virtual/vhost b/virtual/vhost index 99351cb..1683b3f 160000 --- a/virtual/vhost +++ b/virtual/vhost @@ -1 +1 @@ -Subproject commit 99351cb8ab0e30aac949afc683f44581f4332fd2 +Subproject commit 1683b3f20dc1847bdb88149f422f1ee4f4f24b9a