I have been trying simple FTP command in BASH script to put files to FTP server.
USERNAME="User_name_here";
PASSWORD="pass_word_here";
SERVER="ftp_url";
cd /tmp
zip -r dash.zip dash
FILE="/tmp"
echo "file zipped";
BACKUPDIR="copy_dir"
# login to remote server
ftp -n -v $SERVER <<EOF
ascii
user $USERNAME $PASSWORD
cd $BACKUPDIR
mput $FILE/dash.zip
quit
EOF
echo "done";
After executing I am receiving error 550 FileName invalid Please suggest..