From 099ac1f32fc8b68eb0f8766effed1ad5e0b8ebec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Thu, 24 Apr 2008 15:17:07 +0000 Subject: [PATCH] Properly specify the database to backup in the mysql dump script by reverting a tiny part of [2117]. Closes: #1127 --- src/sqlbackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sqlbackup.sh b/src/sqlbackup.sh index 7f8176af..bf51cd31 100755 --- a/src/sqlbackup.sh +++ b/src/sqlbackup.sh @@ -60,10 +60,10 @@ function dobck { mv -f "${target_dir}/${db}.sql${ext}" \ "${target_dir}/${db}.sql.${i}${ext}" 2>/dev/null || true if [ "$compressed" -eq 1 ]; then - mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords -Q -f -q -a -e | + mysqldump --defaults-file=/etc/alternc/my.cnf ${db} --add-drop-table --allow-keywords -Q -f -q -a -e | gzip -c > "${target_dir}/${db}.sql${ext}" else - mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords -Q -f -q -a -e \ + mysqldump --defaults-file=/etc/alternc/my.cnf ${db} --add-drop-table --allow-keywords -Q -f -q -a -e \ > "${target_dir}/${db}.sql" fi