Skip to content

Commit

Permalink
Merge pull request #38 from kdebisschop/add-hex-blob-option
Browse files Browse the repository at this point in the history
add --hex-blob option
  • Loading branch information
BigAndini authored Jun 21, 2021
2 parents 5d87608 + cb708c1 commit 35dfe71
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 @@ -88,6 +88,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 @@ -557,6 +558,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 @@ -207,6 +207,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 35dfe71

Please sign in to comment.