Show
Ignore:
Timestamp:
07/10/08 23:54:02 (4 months ago)
Author:
anarcat
Message:

remove deprecated --all option, put add-locks and lock-tables back into the commandline

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/src/sqlbackup.sh

    r2264 r2265  
    237237       # --quick           : Don't buffer query, dump directly to stdout.  
    238238       #                     optimisation option 
    239        # --all             : Include all MySQL specific create options. 
    240        #                     Permit keep information like type or comment 
    241239       # --extended-insert : Allows utilization of the new, much faster INSERT syntax. 
    242240       #                     optimization option 
    243        # (--add-locks       : Add locks around insert statements.) 
    244        # (--lock-tables     : Lock all tables for read.) 
     241       # --add-locks       : Add locks around insert statements. 
     242       # --lock-tables     : Lock all tables for read. 
    245243       #                      those 2 options avoid insert during dump which can create an unconsistent  
    246244       #                      state of the database backup 
    247        #                      remove because lock is allow for alternc user  
    248245       if [ "$DO_BACKUP" == "YES" ]; then 
    249            command="mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords --quote-names --force --quick --all --extended-insert $db" 
     246           command="mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords --quote-names --force --quick --add-locks --lock-tables --extended-insert $db" 
    250247           if [ "$compressed" -eq 1 ] ; then 
    251248               $command = "$command | gzip -c"