I need to upload the entire content of a directory /home/test to my ftp server, in a specific folder.
I will then schedule the script hourly via cron.
Any examples?
NB. consider that I'm on a Netgear ReadyNAS Duo (a debian box) and I can't install lftp or similars, only standard commands 🙂
Best Answer
Found this bash script online that has quality documentation:
After configuring and saving the .sh script, make it executable:
chmod +x ftpscript.sh
Lastly, configure your cronjob