Hello!
Please I need some help on writing a script to push files from one server to the other once a day, everyday. I know that I can use this script on a crontab to send the files , but I am not sure how to start writing it, the actual script.
I could start by declaring some variables:
HOST=192.168.1.1.
USER=ndo_ftp
---------- Post updated at 02:56 PM ---------- Previous update was at 02:34 PM ----------
will this code be write?
HOST=192.168.1.1
USER=ndo_ftp
PASSWD=123456
FILE=/dir/subdir/file.txt
ftp -n $HOST
quote user $USER
quote pass $PASSWD
put $FILE