mysql_backup.sh: add flag '--compress' du mysqldump options.
This commit is contained in:
parent
962effc961
commit
35caf94c46
@ -1167,7 +1167,7 @@ if $ARCHIVE ;then
|
||||
b_timestamp=`$date +"%s"`
|
||||
|
||||
## - Like --opt but without --extended-insert. So
|
||||
mysqldump_flags="--protocol=SOCKET --max_allowed_packet=128M --skip-opt --add-drop-table --add-locks --create-options --quick --set-charset --disable-keys --lock-tables --routines"
|
||||
mysqldump_flags="--protocol=SOCKET --max_allowed_packet=128M --skip-opt --add-drop-table --add-locks --create-options --quick --compress --set-charset --disable-keys --lock-tables --routines"
|
||||
|
||||
if [ "$i" = "information_schema" -o "$i" = "performance_schema" ];then
|
||||
mysqldump_flags="$mysqldump_flags --single-transaction"
|
||||
|
Loading…
Reference in New Issue
Block a user