Re: Option -filemask and -delete
Understood, that's clear. Thanks, Martin.
synchronize twice. Once with -filemask and once with -delete and Interface\SynchronizeParams=4 (= Existing files only – to prevent uploading files you do not want to upload). You cannot change SynchronizeParams in-process though. So you need to run even WinSCP twice for that.
synchronize remote -preservetime -delete -mirror -filemask="*.txt,*.log" %dirLocal%
-filemask also applies to the -delete option, so if I have, for example, an .exe on the destination, it won't delete it (I assume it doesn't exist on the source). Is there a way to make -filemask not affect -delete?