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:
parent
b6ef65ded3
commit
099ac1f32f
|
@ -60,10 +60,10 @@ function dobck {
|
||||||
mv -f "${target_dir}/${db}.sql${ext}" \
|
mv -f "${target_dir}/${db}.sql${ext}" \
|
||||||
"${target_dir}/${db}.sql.${i}${ext}" 2>/dev/null || true
|
"${target_dir}/${db}.sql.${i}${ext}" 2>/dev/null || true
|
||||||
if [ "$compressed" -eq 1 ]; then
|
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}"
|
gzip -c > "${target_dir}/${db}.sql${ext}"
|
||||||
else
|
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"
|
> "${target_dir}/${db}.sql"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue