Re: synchronizing with filemasks to exclude files
Thank you, Martin! Your reply was very quick and accurate. I tested the double quotes several times and it worked every time.
Thanks again!
Thanks again!
"synchronize -filemask=""|thumbs.db"" remote -delete ""F:\TS MASTER DOCUMENTS"" /""TS MASTER DOCUMENTS""" ^
-filemask="|thumbs.db"
z
's in place of actual values to protect the confidential parts. I also tried
-filemask="|*.db"
remote
and nothing worked. I love WinSCP and would appreciate any help I can get because excluding files during a sync would be a really handy option to have.
"C:\1data\portableapps\WinSCP\WinSCPPortable\App\winscp\WinSCP.com" ^
/log="C:\1data\portableapps\WinSCP\WinSCPPortable\WinSCPlog_ts_master_documents_folder.log" /ini=nul ^
/command ^
"open sftp://zzzz:zzzz@zz.zzz.zzz.zz:zzzz/ -hostkey=""zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz""" ^
"lcd ""f:\""" ^
"cd /" ^
"synchronize -filemask="|thumbs.db" remote -delete ""F:\TS MASTER DOCUMENTS"" /""TS MASTER DOCUMENTS""" ^
"exit"
*.db
to exclude, not include mask:
synchronize -filemask="|*.db" remote "\\servername\Company\Jobs" "/TESTING/Jobs_TEMP"
thumbs.db
(yes we can just have Windows not create them but I would still like to know how to exclude a file)