From 5fd8e43cdc6e56d6861f58a6d24ebb02dc7dfc51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Mon, 7 Aug 2017 12:13:56 +0200 Subject: [PATCH] Closes #23. --- scripts/update-all.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/update-all.sh b/scripts/update-all.sh index 7c403eb..ebd6f4a 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -116,6 +116,14 @@ else fi if [[ $bypass -eq 0 ]]; then + if [ -e data/dbcredentials/credentialsmysql.cnf ]; then + echo "Dumping database to data/backup" + mysqldump --defaults-file=data/dbcredentials/credentialsmysql.cnf --databases monarc_common > data/backup/dump-common.sql + mysqldump --defaults-file=data/dbcredentials/credentialsmysql.cnf --databases monarc_cli > data/backup/dbdump/dump-cli.sql + else + echo "Database dump not configured. Skipping." + fi + migrate_module $phpcommand $pathCore migrate_module $phpcommand $pathBO migrate_module $phpcommand $pathFO