Any pointers on what the script should looks like to do that? Is it possible?
What is a root folder of the synchronization?
What about files in other (sub)folders (if there are any)? What about files in the synchronization root folder?
Sorry about being vague, was trying to keep it general so that it other users in the same boat could benefit as well.
Within each of the monthly folders there are various files, there are 4 file names that get repeated with different file extensions (ATM01.*, ATM02.*, AMT03.* and ATM04.*), there could be other file names in there that I don't want (eg ATM08.*) but I don't know for sure what they will be so I only want to include the files that start with the 4 names given with any file extension after that name. (eg ATM01.txt, ATM01.csv...etc).
On the local machine the file path is H:\sftp\file\ and it should replicate the monthly folder structure.
So I want to synchronize from the Remote (FTP) server to the local machine based on the rules given above.
Is that enough information for you?
Thanks Martin that worked great!