rsync -av --no-perms --links "ssh -i id_rsa" . backup@redstar.local:
$(if [[ "${VALID_SSH}" == "yes" ]]; then echo -e "\055e ${REMOTE_SHELL}"; fi) \
REMOTE_SHELL=""
rsync ... ${REMOTE_SHELL} ...