backup all databases instead of just vhost

This commit is contained in:
SeekDaSky 2018-03-11 16:38:28 +01:00
parent b8b5f6c7ac
commit 116ded48c3
3 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,8 @@ services:
MYSQL_PASSWORD: 4JB1dtbrIC8pT935 MYSQL_PASSWORD: 4JB1dtbrIC8pT935
expose: expose:
- '3306' - '3306'
ports:
- 3307:3306
php-fpm: php-fpm:
build: build:

View File

@ -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