Skip to content

Commit

Permalink
add --hex-blob option
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl DeBisschop committed Feb 28, 2020
1 parent 649b38f commit cb708c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions automysqlbackup
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ load_default_config() {
CONFIG_mysql_dump_use_separate_dirs='yes'
CONFIG_mysql_dump_compression='gzip'
CONFIG_mysql_dump_commcomp='no'
CONFIG_mysql_dump_hex_blob='no'
CONFIG_mysql_dump_latest='no'
CONFIG_mysql_dump_latest_clean_filenames='no'
CONFIG_mysql_dump_max_allowed_packet=''
Expand Down Expand Up @@ -532,6 +533,10 @@ parse_configuration () {
opt=( "${opt[@]}" "--max_allowed_packet=${CONFIG_mysql_dump_max_allowed_packet}" )
opt_fullschema=( "${opt_fullschema[@]}" "--max_allowed_packet=${CONFIG_mysql_dump_max_allowed_packet}" )
}
[[ "${CONFIG_mysql_dump_hex_blob}" = "yes" ]] && {
opt=( "${opt[@]}" '--hex-blob' )
opt_fullschema=( "${opt_fullschema[@]}" '--hex-blob' )
}
[[ "${CONFIG_mysql_dump_socket}" ]] && {
opt=( "${opt[@]}" "--socket=${CONFIG_mysql_dump_socket}" )
mysql_opt=( "${mysql_opt[@]}" "--socket=${CONFIG_mysql_dump_socket}" )
Expand Down
3 changes: 3 additions & 0 deletions automysqlbackup.conf
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ CONFIG_db_exclude_pattern=()
# Choose Compression type. (gzip, bzip2 or xz)
#CONFIG_mysql_dump_compression='gzip'

# Use hex-blob for backup?
#CONFIG_mysql_dump_hex_blob='no'

# Store an additional copy of the latest backup to a standard
# location so it can be downloaded by third party scripts.
#CONFIG_mysql_dump_latest='no'
Expand Down

0 comments on commit cb708c1

Please sign in to comment.