Skip to content

Commit 2b9e777

Browse files
committed
Bugfix on Xtrabackup crons
1 parent 6a79d26 commit 2b9e777

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

manifests/backup/xtrabackup.pp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,23 @@
1919
$execpath = '/usr/bin:/usr/sbin:/bin:/sbin',
2020
) {
2121

22-
mysql_user { "${backupuser}@localhost":
23-
ensure => $ensure,
24-
password_hash => mysql_password($backuppassword),
25-
require => Class['mysql::server::root_password'],
26-
}
27-
2822
package{ 'percona-xtrabackup':
2923
ensure => $ensure,
3024
}
25+
3126
cron { 'xtrabackup-weekly':
3227
ensure => $ensure,
33-
command => 'innobackupex $backupdir',
28+
command => "innobackupex ${backupdir}",
3429
user => 'root',
3530
hour => $time[0],
3631
minute => $time[1],
3732
weekday => 0,
3833
require => Package['percona-xtrabackup'],
3934
}
35+
4036
cron { 'xtrabackup-daily':
4137
ensure => $ensure,
42-
command => 'innobackupex --incremental $backupdir',
38+
command => "innobackupex --incremental ${backupdir}",
4339
user => 'root',
4440
hour => $time[0],
4541
minute => $time[1],
@@ -54,5 +50,4 @@
5450
owner => $backupdirowner,
5551
group => $backupdirgroup,
5652
}
57-
5853
}

0 commit comments

Comments
 (0)