Synchronize remote with local and exclude subdirectories
I've this directory locally that I'ld like to synchronize with a remote server.(I want my remote server to look like the local dir)
/DIR
-> /A
-> /B
-> /C
I would like to exclude subdirectories within A, B C from being synchronized.
I also have some files in /DIR that I also would like to be excluded from being synchronized. Just files in /A/, /B/ and /C/. I don't want to accidentally delete files or folders on either local or remote.
I don't get the .bat-file to start. Can anyone please check what I'm doing wrong? It doesn't post to the log file.
Thanks in advance!
/DIR
-> /A
-> /B
-> /C
I would like to exclude subdirectories within A, B C from being synchronized.
I also have some files in /DIR that I also would like to be excluded from being synchronized. Just files in /A/, /B/ and /C/. I don't want to accidentally delete files or folders on either local or remote.
I don't get the .bat-file to start. Can anyone please check what I'm doing wrong? It doesn't post to the log file.
"open ftp://USER:PASSWORD@IP:PORT/ -passive=0" ^ "cd /DIR/A/" ^ "lcd C:\A\ ^ "synchronize remote -delete -nopermissions -transfer=binary -filemask="|*/" * ^ "exit" set WINSCP_RESULT=%ERRORLEVEL% if %WINSCP_RESULT% equ 0 ( echo Success ) else ( echo Error ) exit /b %WINSCP_RESULT%
Thanks in advance!