Skip to content

Commit 4d4e112

Browse files
committed
escape \% in cron
Percent-signs (%) in the command, unless escaped with backslash \, will be changed into newline characters, and all data after the first % will be sent to the command as standard input.
1 parent 046efc1 commit 4d4e112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/backup/xtrabackup.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
$daily_cron_data = ($incremental_backups) ? {
6565
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)",
6767
'weekday' => '1-6',
6868
},
6969
false => {

0 commit comments

Comments
 (0)