Skip to content

Commit

Permalink
Fixed bind: Address already in use problem when use ftp command
Browse files Browse the repository at this point in the history
Signed-off-by: Teddysun <i@teddysun.com>
  • Loading branch information
teddysun committed Nov 23, 2018
1 parent e2a4004 commit 112ad3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ ftp_upload() {

local FTP_OUT_FILE=$(basename ${OUT_FILE})
log "Tranferring backup file to FTP server"
ftp -in ${FTP_HOST} 2>&1 >> ${LOGFILE} <<EOF
ftp -inp ${FTP_HOST} 2>&1 >> ${LOGFILE} <<EOF
user $FTP_USER $FTP_PASS
binary
lcd $LOCALDIR
Expand Down

0 comments on commit 112ad3b

Please sign in to comment.