More explicit warning for rsync comments/spaces

This commit is contained in:
Jérémy Lecour 2022-10-26 09:39:19 +02:00 committed by Jérémy Lecour
parent aff5dbba95
commit e921c92cae
1 changed files with 9 additions and 3 deletions

View File

@ -403,12 +403,18 @@ sync_tasks() {
update-evobackup-canary --who "${PROGNAME}"
# /!\ DO NOT USE COMMENTS in the rsync command /!\
# It breaks the command and destroys data, simply remove (or add) lines.
# Remote shell command
RSH_COMMAND="ssh -p ${SSH_PORT} -o 'ConnectTimeout ${SSH_CONNECT_TIMEOUT}'"
###################################################################
# /!\ WARNING /!\ WARNING /!\ WARNING /!\ WARNING /!\ WARNING /!\ #
###################################################################
# DO NOT USE COMMENTS in rsync lines #
# DO ADD WHITESPACES AFTER \ in rsync lines #
# It breaks the command and destroys data #
# => Only remove (or add) lines. #
###################################################################
# ignore check because we want it to split the different arguments to $rep
# shellcheck disable=SC2086
rsync --archive \