make commandline actually work
This commit is contained in:
parent
c2039cf504
commit
0fb997a962
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue