I need too automate some backups so that means ftp.
Is this possible within a shell script. Read a lot of sites that offer
3rd party software but would prefer too write one myself. I have
tried the below but cannot get it too work.
______________________________________________
ftp -n -i hostname user username userpassword
binary
get /data/backups/logs/$day-$month-$year.log
close
bye
______________________________________________
When i run it i get "usage: -i host-name [port] ftp "
HELP!!!