Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions automysqlbackup
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ load_default_config() {
CONFIG_mysql_dump_master_data=
CONFIG_mysql_dump_full_schema='yes'
CONFIG_mysql_dump_dbstatus='yes'
CONFIG_mysql_dump_tablespaces='yes'
CONFIG_mysql_dump_differential='no'
CONFIG_mysql_dump_login_path='automysqldump'
CONFIG_mysql_dump_login_path_file=''
Expand Down Expand Up @@ -594,6 +595,10 @@ parse_configuration () {
opt=( "${opt[@]}" '--events' )
fi

if [[ "${CONFIG_mysql_dump_tablespaces}" = "no" ]]; then
opt=( "${opt[@]}" '--no-tablespaces' )
fi

# if differential backup is active and the specified rotation is smaller than 21 days, set it to 21 days to ensure, that
# master backups aren't deleted.
if [[ "x$CONFIG_mysql_dump_differential" = "xyes" ]] && (( ${CONFIG_rotation_daily} < 21 )); then
Expand Down
5 changes: 5 additions & 0 deletions automysqlbackup.conf
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ CONFIG_db_exclude_pattern=()
# in the meantime.
#CONFIG_mysql_dump_dbstatus='yes'

# Include tablespace information in backup?
# As a breaking change in MySQL 5.7.31 and 8.0.21, mysqldump requires either
# PROCESS privileges or must be invoked with the --no-tablespaces option.
#CONFIG_mysql_dump_tablespaces='yes'

# Backup dump settings

# Include CREATE EVENT in backup?
Expand Down