${LOGGER}"REMOTE_SERVER is not specified in config file!"
DIE=1
fi
if[[-z"${REMOTE_USER}"]];then
${LOGGER}"REMOTE_USER is not specified in config file!"
DIE=1
fi
if[[-z"${REMOTE_DIR}"]];then
${LOGGER}"REMOTE_DIR is not specified in config file!"
DIE=1
fi
########################
if[["${DIE}"== 1 ]];then
die "Errors were found! Exiting... Refer to [${CONF_DIR}] for additional configuration."
fi
########################
WORK_DIR="$(mktemp-d)"
mkdir-p"/opt/ssl/"
"${RSYNC_COMMAND:-rsync}"-aL--password-file="${CONF_DIR}/secret" rsync://"${REMOTE_USER}"@"${REMOTE_SERVER}"/"${REMOTE_DIR}/""${WORK_DIR}/"|| die "Could not rsync"