FTP Shell Script Help

With help from the Ventures Online Help Desk I got my phpBB mySQL backup to work. However, VO doesn't support uuencode so I'm trying to FTP the backup to another account. I've tried this shell script:
Code:
#!/bin/bash
ftp -n remotesite.com << END
user [username] [password]
put /home/user/backup/phpbb_backup-`date +%Y%m%d`.sql.gz /phpbb_backup-`date +%Y%m%d`.sql.gz
quit
END
I keep receiving Login failed errors. I've confirmed the username and password are correct by connecting via a shell session. Do I need pauses in the script or something? Any thoughts?

 

 

 

 

Top