command sync filemask for single file does not work for me

Advertisement

Tal
Guest

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 ?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: command sync filemask for single file does not work for me

You cannot easily restrict synchronization to a file in a subfolder. You would have to include the subfolder and exclude all other files in the subfolder. What can be inconvenient.

Easier to add another synchronize command rooted to the subfolder with include mask set to the file.

Reply with quote

Advertisement

You can post new topics in this forum