disabled hostkey check
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -62,14 +62,14 @@ echo "uploading"
|
||||
if [ "$USE_SFTP" -eq 1 ]; then
|
||||
echo "use sftp"
|
||||
cd ~/
|
||||
sshpass -e sftp -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << !
|
||||
sshpass -e sftp -oStrictHostKeyChecking=no -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << !
|
||||
cd ${SFTP_PATH}
|
||||
put ${BACKUP_FILENAME}.gpg
|
||||
bye
|
||||
!
|
||||
if [ "$month_day" -eq 1 ] ; then
|
||||
echo "make monthly backup"
|
||||
sshpass -e sftp -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << !
|
||||
sshpass -e sftp -oStrictHostKeyChecking=no -oBatchMode=no ${SFTP_EXTRA} -b - ${SFTP_USER}@${SFTP_HOST} << !
|
||||
cd ${SFTP_PATH}
|
||||
cp ${BACKUP_FILENAME}.gpg ${BACKUP_FILENAME_MONTHLY}.gpg
|
||||
bye
|
||||
|
||||
Reference in New Issue
Block a user