Skip to content

Commit 046efc1

Browse files
committed
use $() instead of backtiks for command substitution, as it gives a more consistent behavior.
See https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html#tag_23_02_06_03 for more details
1 parent 01f65f9 commit 046efc1

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)