forked from evolix/evobackup
More explicit warning for rsync comments/spaces
This commit is contained in:
parent
aff5dbba95
commit
e921c92cae
|
@ -403,12 +403,18 @@ sync_tasks() {
|
||||||
|
|
||||||
update-evobackup-canary --who "${PROGNAME}"
|
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
|
# Remote shell command
|
||||||
RSH_COMMAND="ssh -p ${SSH_PORT} -o 'ConnectTimeout ${SSH_CONNECT_TIMEOUT}'"
|
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
|
# ignore check because we want it to split the different arguments to $rep
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
rsync --archive \
|
rsync --archive \
|
||||||
|
|
Loading…
Reference in a new issue