Topic "Script Synchronise Timestamps"

Author Message
Guest




I am trying to synchronise files and then synchronise the timestamps using the script file below, but it is saying "Unknown option 'timestamps'."

option confirm on
open sftp://<user removed>:<password removed>@<host removed> -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
synchronize remote "P:\source" "/home/admin/target"
synchronize timestamps "P:\source" "/home/admin/target"

From what I can understand from the documentation, this is because the only options are remote, local or both, but it isnt clear how you synchronise timestamps.

Can someone advise please?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Timestamps synchronization is not supported in scripting.

Timestamps synchronization should be one-off operation to align timestamps, so that you can use regular synchronization afterwards. I do not see a point of using it in scripting.
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