Commit b1eb185d authored by Antoine Beaupré's avatar Antoine Beaupré Committed by fred

fix gzip switch

parent a5823b8a
......@@ -245,10 +245,12 @@ function dobck() {
if [ "$DO_BACKUP" == "YES" ]; then
command="mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords --quote-names --force --quick --add-locks --lock-tables --extended-insert $db"
if [ "$compressed" -eq 1 ] ; then
$command = "$command | gzip -c"
debug "$command > ${target_dir}/${name_backup_file}.sql${ext}"
$command | gzip -c > "${target_dir}/${name_backup_file}.sql${ext}"
else
debug "$command > ${target_dir}/${name_backup_file}.sql${ext}"
$command > "${target_dir}/${name_backup_file}.sql${ext}"
fi
debug "$command > ${target_dir}/${name_backup_file}.sql${ext}"
$command > "${target_dir}/${name_backup_file}.sql${ext}"
fi
IFS=" "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment