Problem with Excluding directories
Hello all. I've been trying to get WinSCP to exclude some directories from sync but have had some odd issues. Here's my basic script (run from a batch file):
The basic sync works, but it also completely syncs the "src" dir. Odd thing is it doesn't sync the "obj" dir. Also, it syncs 1 file in the "localvars" dir, but doesn't sync the rest of the files in that dir. I noticed this because I just put an additional file into that dir that I need different on my local server and the remote. There are other files that need to be different as well, but only 1 file in that dir is synced with my local server. Any ideas on why that script I posted would exhibit the behavior I've described?[/code]
option batch on option confirm off option transfer binary option exclude "M:\mypath\localvars\*" option exclude "M:\mypath\src\*" option exclude "M:\mypath\obj\*" open server:pass@99.99.99.99 synchronize remote M:\local\path /remote/path exit
The basic sync works, but it also completely syncs the "src" dir. Odd thing is it doesn't sync the "obj" dir. Also, it syncs 1 file in the "localvars" dir, but doesn't sync the rest of the files in that dir. I noticed this because I just put an additional file into that dir that I need different on my local server and the remote. There are other files that need to be different as well, but only 1 file in that dir is synced with my local server. Any ideas on why that script I posted would exhibit the behavior I've described?[/code]