I have the following script that I am trying to get to work, if its possible of course. When I run the script I get an error message which is
ftp: line 8: ftp: command not found
Will this sort of thing actually work, and if so what else do I need to install. I have vsftpd installed and running and thought that would do the trick.
HOST="ftp.com" USER="backups" PASSWD="pass" DATE=$(date +"%Y-%m-%d") FILE="dbbackup_$DATE.sql.gz" ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD binary get $FILE quit