Changeset 2423


Ignore:
Timestamp:
10/22/08 01:46:39 (5 years ago)
Author:
anarcat
Message:

fix gzip switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/src/sqlbackup.sh

    r2421 r2423  
    246246           command="mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords --quote-names --force --quick --add-locks --lock-tables --extended-insert $db" 
    247247           if [ "$compressed" -eq 1 ] ; then 
    248                $command = "$command | gzip -c" 
     248               debug "$command > ${target_dir}/${name_backup_file}.sql${ext}" 
     249               $command | gzip -c > "${target_dir}/${name_backup_file}.sql${ext}" 
     250           else 
     251               debug "$command > ${target_dir}/${name_backup_file}.sql${ext}" 
     252               $command > "${target_dir}/${name_backup_file}.sql${ext}" 
    249253           fi 
    250            debug "$command > ${target_dir}/${name_backup_file}.sql${ext}" 
    251            $command > "${target_dir}/${name_backup_file}.sql${ext}" 
    252254        fi 
    253255 
Note: See TracChangeset for help on using the changeset viewer.