I'm new on this forum, altought I'm using winSCP for years. But now, I've faced a problem, I can't solve for days.
I have the following directory structure on a SFTP server:
Which means, that under XYreports (last fix dirname), there are date-named directories, whereunder there are hundreds of terminalID driven dirnames. All those terminalID subdirectories contains only 1 ZIP file, whise are important for us. But only for specified terminalIDs!
So for exact example:
and so on. there are only 1 zip under those final subdirectories.
I'm interested on EVERY DAY, only on AAA123 -named terminal's zip file. (and later the BBB556 for example). All others I don't want even download.
My best effort was:
cd /reportfiles/XYreports/20171015/ synchronize -filemask="*AAA123*/" local ..\transfer\
This one downloads only the AAA123 dir, with the zip inside it. But it works only in 20171015 subdirectory.
I don't want to specify the day, so I want something like
cd /reportfiles/XYreports/ synchronize -filemask="*/*AAA123*/" local ..\transfer\
But it doesn't work, since the log says: all subdirs are excluded.
How can I do that, guys?