Need program/script/tool to automate ftp download and delete

I have a directory on a remote server that contains many files.

Every day at 9:00pm, I need to:

1) "get" all the files in a certain remote directory to a local folder. Retry if the connection fails or the download is aborted, or whatever else goes wrong.

2) confirm each file on the remote folder was downloaded successfully and now exists on the local server

3) delete the "old" files from the remote folder that were just downloaded.

Does anyone know of a utility or script that can do this? Can I do it with wget?

It MUST use the FTP protocol, because we don't have any control over the remote software to install any other software.

Thanks.

 

 

 

 

Top