I'm writing a batch file to synchronize a server directory with a local directory. However, there are a set of subdirectories that I want WinSCP to ignore.
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:yyyyyyy@zzzzzzz.com
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.
Thanks,
Dan