Sync with files exclusions
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:
/
index.html
manyfiles.html
/folder1
/folder1/index.html
/folder1/manyfiles.html
/folder2
/folder2/index.html
/sessions/
/sessions/manysessions.html
Using the instructions above, I copy all files under / but none under any /folder1 or /folder2
So, what is wrong?
Thank you very much