I am trying to ftp some recording files to a remote server for backup every night. I am very confused regarding shell script.
My question / problem is : I want to move the whole folder/directory instead of file to the remote server.
Here is current script:
HOST='10.113.68.50'
USER='sms'
PASSWD='Abc123451'
LOCALPATH='kmpy/unica/Campaign/partitions/partition1/CiktiDosyalari'
FILE=*.sms
DIR='SMS/'
ftp -n $HOST <<EOF
quote USER $USER
quote PASS $PASSWD
cd $DIR
lcd $LOCALPATH
put $FILE
quit
exit;
EOF