It is necessary to organize the copying of files over the network from one server to another.
At the same time, you need to copy files to different folders on the target machine, depending on the format of the file name.
** C: / Program Files / aProgram / files / FILENAME__15122018.ext1 ===> / home / work / sourcedir1
C: / Program Files / aProgram / files / 15122018_FILENAME.ext2 ===> / home / work / sourcedir2 **
In C: / Program Files / aProgram / files / there is a set of files and is regularly updated and this is a Windows machine ( PC1 ) There is PC2 where you need to copy files and this is a Unix machine ( PC2 )
At the same time, copying should take place on a secure channel regularly (once a day)
From what I could think of, having no experience with such tasks:
Raise a self-written go SPTP server on PC1 on the desired folder, organize SSH-keys authentication. On PC2, the client can read the folder and copy files according to the folder by the right folder ..
Maybe someone had experience of this and can tell