Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
Tal

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 ?