Easy: just set up an "option exclude" line that lists all the ignored directories, separated by semicolons, right? Well, it doesn't work for me. Here's the script:
option batch on option confirm off option transfer binary option synchdelete on option exclude "C:\TopDir\GFLogs\*;C:\TopDir\PostgreSQL\*;C:\TopDir\Apache\*;C:\TopDir\PHP5\*" open xxxxxx:firstname.lastname@example.org synchronize local C:\TopDir /home/dang/working/TopDir
As far as I can tell, this has no effect on WinSCP; when the batch file is run, WinSCP starts right into updating C:\TopDir\Apache\* to match /home/dang/working/TopDir/Apache/*.
How can I handle this? I'd rather not separately list the subdirectories to be synchronized, as new ones get added from time to time and the new ones need to automatically synchronize.