Need to escape a backslash

This commit is contained in:
Jeremy Gardais 2018-02-21 09:45:38 +01:00
parent 59a66af233
commit 041d5cd05d
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ if ($phase eq 'job-start' ||
# no die cause if the previous backup exit on tarfile copy, the link might not exist
# Link last template file to a better name
system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \;") == 0 ||
system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \\;") == 0 ||
die "link template to a better name failed";
# Ensure to remove template older than $RETENTION_TIME

View File

@ -66,7 +66,7 @@ if ($phase eq 'job-start' ||
# no die cause if the previous backup exit on tarfile copy, the link might not exist
# Link last template file to a better name
system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \;") == 0 ||
system ("find $TEMPLATE_DIR -iname 'vzdump-lxc-$vmid*.tar.*' -mmin -60 -exec ln -s {} $TEMPLATE_DIR/$TEMPLATE_FILE_LINK \\;") == 0 ||
die "link template to a better name failed";
# Ensure to remove template older than $RETENTION_TIME