Using WinSCP 5.9.2
I need to copy the whole web site back to my PC, with exclusion of couple folders that are 'sessions' on a database. If I try to sync everything, include that /sessions folder, sometimes I get error when a user leaves the database, so I figure out that the best option will be to EXCLUDE that.
This is my .txt file:
synchronize local c:\MySites\Site1\
/public_html -delete -preservetime -filemask=""*/*|*/sessions""
This work on the sense that /sessions IS NOT being copied, but also, any sub-folder from my root. What I'm doing wrong?
I have this structure:
Using the instructions above, I copy all files under / but none under any /folder1 or /folder2
So, what is wrong?
Thank you very much