Properly specify the database to backup in the mysql dump script by

reverting a tiny part of [2117].

Closes: #1127
This commit is contained in:
Antoine Beaupré 2008-04-24 15:17:07 +00:00
parent b6ef65ded3
commit 099ac1f32f
1 changed files with 2 additions and 2 deletions

View File

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