File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 63
63
64
64
$daily_cron_data = ($incremental_backups ) ? {
65
65
true => {
66
- ' directories' => " --incremental-basedir=${backupdir} --target-dir=${backupdir} /` date +%F_%H-%M-%S` " ,
66
+ ' directories' => " --incremental-basedir=${backupdir} --target-dir=${backupdir} /$( date +\\ %F_\\ %H-\\ %M-\\ %S) " ,
67
67
' weekday' => ' 1-6' ,
68
68
},
69
69
false => {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class { 'mysql::server': }
44
44
is_expected . to contain_cron ( 'xtrabackup-daily' )
45
45
. with (
46
46
ensure : 'present' ,
47
- command : '/usr/local/sbin/xtrabackup.sh --incremental-basedir=/tmp --target-dir=/tmp/` date +%F_%H-%M-%S` --backup' ,
47
+ command : '/usr/local/sbin/xtrabackup.sh --incremental-basedir=/tmp --target-dir=/tmp/$( date +\ %F_\ %H-\ %M-\%S) --backup' ,
48
48
user : 'root' ,
49
49
hour : '23' ,
50
50
minute : '5' ,
@@ -101,7 +101,7 @@ class { 'mysql::server': }
101
101
is_expected . to contain_cron ( 'xtrabackup-daily' )
102
102
. with (
103
103
ensure : 'present' ,
104
- command : '/usr/local/sbin/xtrabackup.sh --incremental-basedir=/tmp --target-dir=/tmp/` date +%F_%H-%M-%S` --backup --skip-ssl' ,
104
+ command : '/usr/local/sbin/xtrabackup.sh --incremental-basedir=/tmp --target-dir=/tmp/$( date +\ %F_\ %H-\ %M-\%S) --backup --skip-ssl' ,
105
105
user : 'root' ,
106
106
hour : '23' ,
107
107
minute : '5' ,
You can’t perform that action at this time.
0 commit comments