Re: Keep the different versions of the same file
If you combine techniques described in example below, you should be able to achieve what you need.
https://winscp.net/eng/docs/script_download_timestamped_filename
https://winscp.net/eng/docs/script_checking_file_existence
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/script_download_timestamped_filename
https://winscp.net/eng/docs/script_checking_file_existence
https://winscp.net/eng/docs/script_download_most_recent_file