Changeset 2265 for alternc/trunk/src
- Timestamp:
- 07/10/08 23:54:02 (4 months ago)
- Files:
-
- alternc/trunk/src/sqlbackup.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/src/sqlbackup.sh
r2264 r2265 237 237 # --quick : Don't buffer query, dump directly to stdout. 238 238 # optimisation option 239 # --all : Include all MySQL specific create options.240 # Permit keep information like type or comment241 239 # --extended-insert : Allows utilization of the new, much faster INSERT syntax. 242 240 # 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. 245 243 # those 2 options avoid insert during dump which can create an unconsistent 246 244 # state of the database backup 247 # remove because lock is allow for alternc user248 245 if [ "$DO_BACKUP" == "YES" ]; then 249 command="mysqldump --defaults-file=/etc/alternc/my.cnf --add-drop-table --allow-keywords --quote-names --force --quick --a ll--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" 250 247 if [ "$compressed" -eq 1 ] ; then 251 248 $command = "$command | gzip -c"
