disable SSH warnings

This commit is contained in:
2017-01-18 00:42:04 +01:00
parent bbd9f67021
commit 175c9492de

View File

@@ -61,7 +61,7 @@ while read line; do
logecho "${RHOST}: Downloading ${SOURCE} to ${DEST}"
# RSYNC
rsync -az -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ${RHOST}:${SOURCE}/ "${DEST}"/
rsync -az -e "ssh -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ${RHOST}:${SOURCE}/ "${DEST}"/
# Pack backup directory, and delete uncompressed one
tar cf ${DEST}.tar -C $(echo ${DEST} | sed "s|$(basename ${DEST})$||") $(basename ${DEST}) # TODO: avoid absolute paths