Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow backupcompress for xtrabackup profile #1196

Merged
merged 4 commits into from
Feb 17, 2020
Merged
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
2 changes: 1 addition & 1 deletion manifests/server/backup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# @param backupdirgroup
# Group owner for the backup directory. This parameter is passed directly to the file resource.
# @param backupcompress
# Whether or not to compress the backup (when using the mysqldump provider)
# Whether or not to compress the backup (when using the mysqldump or xtrabackup provider)
# @param backupmethod
# The execution binary for backing up. ex. mysqldump, xtrabackup, mariabackup
# @param backup_success_file_path
Expand Down
4 changes: 4 additions & 0 deletions templates/xtrabackup.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ cleanup
<%- _innobackupex_args = '--user="' + @backupuser + '" --password="' + @backuppassword + '"' -%>
<%- end -%>

<%- if @backupcompress -%>
<%- _innobackupex_args = _innobackupex_args + ' --compress' -%>
<%- end -%>

<%- if @backupdatabases and @backupdatabases.is_a?(Array) and [email protected]? -%>
<%- _innobackupex_args = _innobackupex_args + ' --databases="' + @backupdatabases.join(' ') + '"' -%>
<%- end -%>
Expand Down