DropBox allows me to put any file I wanted uploaded to the website into /root/wsupdate/DropBox and when the script is executed it will upload all of the files in there and clean the DropBox directory.
Please note that some of the code has been modified to remove private information.
lcd /root/wsupdate/DropBox
open ftp.ftpsite.com -u username,password
mput *
!rm -f /root/wsupdate/DropBox/*
close
!echo done
exit
The script is set to run at midnight on my system unless I execute it manually with:
lftp -f /root/wsupdate/dropbox.lfp
The crontab entry for this is:
0 0 * * * lftp -f /root/wsupdate/dropbox.lftp