Skip to content

Commit 815d79d

Browse files
committed
MODULES-10023 add parameter $incremental_backups to parent class
1 parent 99ecc8c commit 815d79d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

manifests/backup/mysqlbackup.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
$postscript = false,
2828
$execpath = '/usr/bin:/usr/sbin:/bin:/sbin',
2929
$optional_args = [],
30+
$incremental_backups = false,
3031
) inherits mysql::params {
3132

3233
mysql_user { "${backupuser}@localhost":

manifests/backup/mysqldump.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
$optional_args = [],
2929
$mysqlbackupdir_ensure = 'directory',
3030
$mysqlbackupdir_target = undef,
31+
$incremental_backups = false,
3132
) inherits mysql::params {
3233

3334
unless $::osfamily == 'FreeBSD' {

manifests/server/backup.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
# Dump stored routines (procedures and functions) from dumped databases when doing a `file_per_database` backup.
4949
# @param include_triggers
5050
# Dump triggers for each dumped table when doing a `file_per_database` backup.
51+
# @param incremental_backups
52+
# A flag to activate/deactivate incremental backups. Currently only supported by the xtrabackup provider.
5153
# @param ensure
5254
# @param time
5355
# An array of two elements to set the backup time. Allows ['23', '5'] (i.e., 23:05) or ['3', '45'] (i.e., 03:45) for HH:MM times.
@@ -88,6 +90,7 @@
8890
$provider = 'mysqldump',
8991
$maxallowedpacket = '1M',
9092
$optional_args = [],
93+
$incremental_backups = true,
9194
) inherits mysql::params {
9295

9396
if $prescript and $provider =~ /(mysqldump|mysqlbackup)/ {
@@ -120,6 +123,7 @@
120123
'execpath' => $execpath,
121124
'maxallowedpacket' => $maxallowedpacket,
122125
'optional_args' => $optional_args,
126+
'incremental_backups' => $incremental_backups,
123127
}
124128
})
125129
}

0 commit comments

Comments
 (0)