Skip to content

Commit d6c0a08

Browse files
author
carabasdaniel
authored
Merge pull request #1196 from Spuffnduff/patch-1
Allow backupcompress for xtrabackup profile
2 parents fccde9e + 010414d commit d6c0a08

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

manifests/server/backup.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# @param backupdirgroup
3030
# Group owner for the backup directory. This parameter is passed directly to the file resource.
3131
# @param backupcompress
32-
# Whether or not to compress the backup (when using the mysqldump provider)
32+
# Whether or not to compress the backup (when using the mysqldump or xtrabackup provider)
3333
# @param backupmethod
3434
# The execution binary for backing up. ex. mysqldump, xtrabackup, mariabackup
3535
# @param backup_success_file_path

templates/xtrabackup.sh.erb

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ cleanup
4343
<%- _innobackupex_args = '--user="' + @backupuser + '" --password="' + @backuppassword + '"' -%>
4444
<%- end -%>
4545

46+
<%- if @backupcompress -%>
47+
<%- _innobackupex_args = _innobackupex_args + ' --compress' -%>
48+
<%- end -%>
49+
4650
<%- if @backupdatabases and @backupdatabases.is_a?(Array) and [email protected]? -%>
4751
<%- _innobackupex_args = _innobackupex_args + ' --databases="' + @backupdatabases.join(' ') + '"' -%>
4852
<%- end -%>

0 commit comments

Comments
 (0)