I need to do the following routine every 4 hours or so and wondered what the easiest way to do it was:
"to send a file between 2 servers (where vpn not possible)" : file size <200kb
-compress a folder on both servers, email or ftp the file to each other
-each server to send a confirmation to the other that the file has been successfully received
-the folders containing the files at each end to have their contents deleted
-email confirmation to be sent in the even that the file doesnt get to the other server within an hour
I was going to try and do it within a batch file but suspect I might struggle with the email sending and receiving.
For reference, one of the servers is in China and we are having really serious issues, because of government data screening, to get a VPN stable enough to rely on to do this process, though if there was a way whereby it could retry sending it simply using a fully qualified path directly to each other that would be another option, otherwise email or ftp i think are the only options, and again I'm not sure how to automate ftp transfer (and confirm they were successul) in dos!
It must be noted I am VERY much a novice...