From a271cc874e008e7ce4c257feb0aad6c5f7c3c09c Mon Sep 17 00:00:00 2001 From: Alexander Janssen Date: Wed, 9 Jan 2019 11:12:30 +0100 Subject: [PATCH 1/3] Allow the compressing of xtrabackup Update xtrabackup.sh.erb --- templates/xtrabackup.sh.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/xtrabackup.sh.erb b/templates/xtrabackup.sh.erb index 85d31f13d..4afea0f59 100644 --- a/templates/xtrabackup.sh.erb +++ b/templates/xtrabackup.sh.erb @@ -18,6 +18,10 @@ <%- _innobackupex_args = '--user="' + @backupuser + '" --password="' + @backuppassword + '"' -%> <%- end -%> +<%- if @backupcompress -%> + <%- _innobackupex_args = _innobackupex_args + '--compress' -%> +<%- end -%> + <%- if @backupdatabases and @backupdatabases.is_a?(Array) and !@backupdatabases.empty? -%> <%- _innobackupex_args = _innobackupex_args + ' --databases="' + @backupdatabases.join(' ') + '"' -%> <%- end -%> From 78711836bab4098e2c4b5bd7468c48a2260009a3 Mon Sep 17 00:00:00 2001 From: Alexander Janssen Date: Thu, 10 Jan 2019 11:11:10 +0100 Subject: [PATCH 2/3] Update xtrabackup.sh.erb --- templates/xtrabackup.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/xtrabackup.sh.erb b/templates/xtrabackup.sh.erb index 4afea0f59..219851516 100644 --- a/templates/xtrabackup.sh.erb +++ b/templates/xtrabackup.sh.erb @@ -19,7 +19,7 @@ <%- end -%> <%- if @backupcompress -%> - <%- _innobackupex_args = _innobackupex_args + '--compress' -%> + <%- _innobackupex_args = _innobackupex_args + ' --compress' -%> <%- end -%> <%- if @backupdatabases and @backupdatabases.is_a?(Array) and !@backupdatabases.empty? -%> From af6f2b57d18bfbec31da28fa6fd4a8f451b1a0cc Mon Sep 17 00:00:00 2001 From: Corey Shafer Date: Fri, 17 May 2019 15:48:04 -0400 Subject: [PATCH 3/3] Updated backupcompress comment Updated the backupcompress comment in the backup main profile --- manifests/server/backup.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/server/backup.pp b/manifests/server/backup.pp index 25bf0537a..52ddca2f3 100644 --- a/manifests/server/backup.pp +++ b/manifests/server/backup.pp @@ -24,7 +24,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 backuprotate # Backup rotation interval in 24 hour periods. # @param ignore_events