Differences
This shows you the differences between the selected revisions of the page.
scriptcommand_synchronize 2024-04-25 | scriptcommand_synchronize 2024-04-25 (current) | ||
Line 34: | Line 34: | ||
XML log elements: ''[[logging_xml#download|download]]'' (with ''[[#local|local]]'' or ''[[#both|both]]''), ''[[logging_xml#upload|upload]]'' (with ''[[#remote|remote]]'' or ''both''), ''[[logging_xml#mkdir|mkdir]]'', ''[[logging_xml#touch|touch]]'' (with ''remote'' or ''both''), ''[[logging_xml#chmod|chmod]]'' (with ''remote'' or ''both'' and ''[[#permissions|-permissions]]''), ''[[logging_xml#rm|rm]]'' (with ''remote'' and ''[[#delete|-delete]]'') | XML log elements: ''[[logging_xml#download|download]]'' (with ''[[#local|local]]'' or ''[[#both|both]]''), ''[[logging_xml#upload|upload]]'' (with ''[[#remote|remote]]'' or ''both''), ''[[logging_xml#mkdir|mkdir]]'', ''[[logging_xml#touch|touch]]'' (with ''remote'' or ''both''), ''[[logging_xml#chmod|chmod]]'' (with ''remote'' or ''both'' and ''[[#permissions|-permissions]]''), ''[[logging_xml#rm|rm]]'' (with ''remote'' and ''[[#delete|-delete]]'') | ||
- | $synchronizationResult = | + | ===== [[examples]] Examples ===== |
- | ···$session.SynchronizeDirectories( | + | <code winscp> |
- | ········[WinSCP.SynchronizationMode]::Both, "d:\www", "/home/martin/public_html", $False) | + | synchronize both |
- | # Throw on any error to emulate the (default) "option batch abort" mode | + | </code> |
- | $synchronizationResult.Check() | + | <code winscp> |
+ | synchronize remote -delete d:\www /home/martin/public_html | ||
+ | </code> | ||
+ | <code winscp> | ||
+ | synchronize both -filemask="|*.bak; *.tmp" | ||
+ | </code> | ||
===== [[net]] Converting to .NET Assembly ===== | ===== [[net]] Converting to .NET Assembly ===== |