Topic "Synchronize downloads all files, cause by DST?"

Author Message
3K
[View user's profile]
Donor
Joined: 2012-01-20
Posts: 34
Location: Geneva
Hello,

My script below works properly last week but this week, it downloads all the files each time I run it.

- synchronize local c:\mydocs /home/mydocs

I think because of the DST. What will be the script option/command so that it will not download all the files? I've seen synchronize timestamp but couldn't find the right command.

Thank you. Smile
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Timestamp synchronization is not supported in scripting. You need to do it from GUI.
_________________
Martin Prikryl
3K
[View user's profile]
Donor
Joined: 2012-01-20
Posts: 34
Location: Geneva
Hello,

Found this command in the forum and it works:

- winscp.com /rawsettings ConsiderDST=0 /script="myScript.txt"

Then, on myScript.txt, the synchronize command works properly.

- synchronize local c:\mydocs /home/mydocs

So, the solution was to add /rawsettings ConsiderDST=0.

FYI. Very Happy
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This cannot work, unless you also specify a session to open in the command-line.
Anyway, the correct syntax is to use this from open command in the script:
Code:
open your_session -rawsettings ConsiderDST=0


https://winscp.net/eng/docs/rawsettings
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