I've got three systems I need to transfer files between daily:
Vendor A (SFTP site) - Deletes files after 14 days
Vendor B (SFTP site) - Deletes files after processing them
Company Server (Windows 2008) - Stores files as backups
Each day I want to download new files from Vendor A to our company server and upload them to Vendor B. The caveat with a simple file transfer script is that the file transfer from Vendor A to the company server might succeed but fail when transferring from company server to Vendor B. Thus vendor B is missing a days worth of files. Vendor B doesn't tell me when they are missing files and Vendor A doesn't always generate a file on a given day.
Any ideas on how to automate this file transfer scenario so that in the event of a failure the system will try again at a later time?