ftpuploadscpwinscpscriptable

When uploading new files to FTP server, how to prevent reupload of files that were deleted on the server meanwhile


I need to automate the upload of some files from client PCs to a central server. We're building central statistics for an online gaming community, processing game replay files.

The files are processed on the server, and then they're not required anymore, and ought to be deleted to not run out of disk space eventually. I also only need some of the files, but due to the files requiring very complex processing including decryption, so i can only determine that after the server processed it.

My initial idea was to use a scriptable client such as WinSCP, and use some Windows scheduler entry to automate it. WinSCP documentation looks very nice. I am a bit hesitant because I see the following problems:

I was thinking maybe someone has done the same before and can give some advice.


Solution

  • There's article on WinSCP site that deals with all this:
    How do I transfer new/modified files only?

    For advanced logic, like yours, it uses PowerShell script with use of WinSCP .NET assembly.