Cron Job - FTP Upload File script
Hi,
I am trying to create a script to ftp upload some backed files from one server to another in CentOS.
I use to do this in SSH, but cannot do this anymore...
Im a bit stuck where to start, I know how to do it manual, with the ftp, put commands etc. However I want the script to run under Cron daily.
Also the filename that I will be uploading will change daily (the date is included in the filename, e.g. filename-2008-02-14.tar.gz). So it might be worth making a temp directory somewhere and upload the contents of the directory, then remove the file after the upload has completed...?
Your thoughts would be great.
Thanks
|