Topic "need help for Synchronize script"

Author Message
strong

Guest


Hello,

would it be possible to help me about this task?

I wanna run a script for synronization between 2 folders.
-the direction is Local.
-Mode is Synchronize files
-Synchronize options: Preview changes
-Comparison criteria: Modification time

My script is:

open ftpes://user:pass@ftpssl.example.com:20020/ -rawsettings MinTlsVersion=11
synchronize local C:\Users\test /usr/nn/gateway/mbox/fxf/files
exit

So how can I put Comparison criteria and Synchronize options to this script.

Thank you
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
strong wrote:
-Synchronize options: Preview changes

Use the -preview switch:
https://winscp.net/eng/docs/scriptcommand_synchronize#preview

Quote:
-Comparison criteria: Modification time

That's the default. No code needed. But, if you want it explicitly, use the -criteria=time:
https://winscp.net/eng/docs/scriptcommand_synchronize#criteria
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License