make commandline actually work

This commit is contained in:
Antoine Beaupré 2008-07-10 21:52:52 +00:00
parent c2039cf504
commit 0fb997a962
1 changed files with 1 additions and 8 deletions

View File

@ -246,14 +246,7 @@ function dobck() {
# state of the database backup # state of the database backup
# remove because lock is allow for alternc user # remove because lock is allow for alternc user
if [ "$DO_BACKUP" == "YES" ]; then if [ "$DO_BACKUP" == "YES" ]; then
$command = mysqldump -h"$MYSQL_HOST" -u"$login" -p"$pass" "$db" \ command="mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords --quote-names --force --quick --all --extended-insert $db"
--add-drop-table \
--allow-keywords \
--quote-names \
--force \
--quick \
--all \
--extended-insert
if [ "$compressed" -eq 1 ] ; then if [ "$compressed" -eq 1 ] ; then
$command = "$command | gzip -c" $command = "$command | gzip -c"
fi fi