From c4b83b9e62d59b808df5b8be11600e72b7b5bb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Wed, 27 Sep 2017 08:43:47 +0200 Subject: [PATCH] name of the db to dump in a variable --- scripts/backup_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup_db.sh b/scripts/backup_db.sh index e749ebe..17da2c9 100644 --- a/scripts/backup_db.sh +++ b/scripts/backup_db.sh @@ -21,7 +21,7 @@ PUCLIC_KEY=$1 if [ -e $MYSQL_CREDENTIALS ]; then mkdir $BACKUP_DIR echo -e "\e[32mDumping database to $BACKUP_DIR...\e[0m" - mysqldump --defaults-file=$MYSQL_CREDENTIALS --databases monarc_cli > $BACKUP_DIR/dump-cli.sql + mysqldump --defaults-file=$MYSQL_CREDENTIALS --databases $CLIENT > $BACKUP_DIR/dump-cli.sql echo -e "\e[32mEncrypting database...\e[0m" openssl smime -encrypt -binary -text -aes256 -in plain.txt -out $BACKUP_DIR/dump-cli.sql.enc -outform DER $1