I need to upload files of a directory /home/test to my ftp server, in a specific folder. I will then schedule the script hourly via cron. Any examples? I try most solutions but i'm not able to put file. This is my code
HOST=*****
USER=****
PASSWORD=****
PORT=990
FILE=test.txt
ftp -inv $HOST << EOF
user $USER $PASSWORD
cd /Test
put test.test
bye
EOF
I Found solution: Just do
lftp -u $USER,$PASSWORD ftps://$HOST:$PORT <<EOF
set ssl:verify-certificate no
set ftp:ssl-protect-data true
put test.txt
exit
EOF
Thanks a lot for your ideas.