backup all databases instead of just vhost
This commit is contained in:
parent
b8b5f6c7ac
commit
116ded48c3
|
@ -13,7 +13,9 @@ services:
|
||||||
MYSQL_USER: php
|
MYSQL_USER: php
|
||||||
MYSQL_PASSWORD: 4JB1dtbrIC8pT935
|
MYSQL_PASSWORD: 4JB1dtbrIC8pT935
|
||||||
expose:
|
expose:
|
||||||
- '3306'
|
- '3306'
|
||||||
|
ports:
|
||||||
|
- 3307:3306
|
||||||
|
|
||||||
php-fpm:
|
php-fpm:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -15,5 +15,5 @@ test ! -d $ROOT/persistent && mkdir -p $ROOT/persistent;
|
||||||
|
|
||||||
# 2. Backup database
|
# 2. Backup database
|
||||||
echo -ne " * 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);
|
test "$?" = "0" && echo "done" || (echo "failed"; exit 1);
|
|
@ -1 +1 @@
|
||||||
Subproject commit 99351cb8ab0e30aac949afc683f44581f4332fd2
|
Subproject commit 1683b3f20dc1847bdb88149f422f1ee4f4f24b9a
|
Loading…
Reference in New Issue