command sync filemask for single file does not work for me
I wish to sync a single file and then some folders
But no matter what option i tried , the file is never included
I tired full local path , remote path with * for folders
The last try that didnt worked :
winscp /command "open sftp://user1:1234@11.11.11.11/" "synchronize remote C:\localPublish\Test_MP\PackageTmp /C:/tst_inetpub/wwwroot/Test_MPP -criteria=size,timestamp -transfer=binary -filemask=*/bin/*.cshtml;Views/" "exit" /defaults
Only Views folder is been synced
tried:
-filemask=C:\\localPublish\\Test_MPP\\PackageTmp\\bin\\TextEditor.cshtml;Views/
-filemask=C:\localPublish\Test_MPP\PackageTmp\bin\TextEditor.cshtml;Views/
-filemask=/C:/tst_inetpub/wwwroot/Test_MPP/bin/TextEditor.cshtml;Views/
-filemask=bin/TextEditor.cshtml;Views/
-filemask=*/bin/TextEditor.cshtml;Views/
and all sorts of combinations
I am lost
What am i doing wrong ?
But no matter what option i tried , the file is never included
I tired full local path , remote path with * for folders
The last try that didnt worked :
winscp /command "open sftp://user1:1234@11.11.11.11/" "synchronize remote C:\localPublish\Test_MP\PackageTmp /C:/tst_inetpub/wwwroot/Test_MPP -criteria=size,timestamp -transfer=binary -filemask=*/bin/*.cshtml;Views/" "exit" /defaults
Only Views folder is been synced
tried:
-filemask=C:\\localPublish\\Test_MPP\\PackageTmp\\bin\\TextEditor.cshtml;Views/
-filemask=C:\localPublish\Test_MPP\PackageTmp\bin\TextEditor.cshtml;Views/
-filemask=/C:/tst_inetpub/wwwroot/Test_MPP/bin/TextEditor.cshtml;Views/
-filemask=bin/TextEditor.cshtml;Views/
-filemask=*/bin/TextEditor.cshtml;Views/
and all sorts of combinations
I am lost
What am i doing wrong ?