Synchronizing based on a partial filename
Hi I am wanting to create some script that will move all the files from an one of my servers to another. This is going to be used for backup purposes and run often.
I see the synchronization is the way to go and I have easily created some batch files that will do this with winscp. :D
However my problem lies in that I don't want all files from that folder moved only ones with the a file name that begins with "cl" but the rest of the file name is different and may have a completely different file extension.
Here is my code as I think it should work :!:...taking off the filemask and it works great moving over all of my files but that's only half of my objective as I only want the ones with cl.
I see the synchronization is the way to go and I have easily created some batch files that will do this with winscp. :D
However my problem lies in that I don't want all files from that folder moved only ones with the a file name that begins with "cl" but the rest of the file name is different and may have a completely different file extension.
Here is my code as I think it should work :!:...taking off the filemask and it works great moving over all of my files but that's only half of my objective as I only want the ones with cl.
open asp1_checks pause synchronize -filemask="cl.*" local "Y:\checks\" "/asp1/luminx/naa/live/jacob/checks/" exit