use rsync instead of sftp

pull/2722/head
Isaac Connor 2019-10-09 13:00:29 -04:00
parent c7f5673b47
commit 29a8cd3c91
1 changed files with 3 additions and 3 deletions

View File

@ -26,15 +26,15 @@ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ] || [ "${OS}" == "debian" ] || [ "${OS}"
echo "Target subfolder set to $targetfolder" echo "Target subfolder set to $targetfolder"
echo echo
if [ "${USE_SFTP}" == "yes" ]; then if [ "${USE_SFTP}" == "yes" ]; then
results="$(sftp build/* "zmrepo@zmrepo.zoneminder.com:${targetfolder}/" 2>&1)" results="$(rsync build/* "zmrepo@zmrepo.zoneminder.com:${targetfolder}/" 2>&1)"
if [ -z "$results" ]; then if [ -z "$results" ]; then
echo echo
echo "Files copied successfully." echo "Files copied successfully."
echo echo
else else
echo echo
echo "ERROR: Attempt to mount zmrepo.zoneminder.com failed!" echo "ERROR: Attempt to rsync to zmrepo.zoneminder.com failed!"
echo "sshfs gave the following error message:" echo "rsync gave the following error message:"
echo \"$results\" echo \"$results\"
echo echo
exit 99 exit 99