Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Script Synchronise Timestamps

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.
Guest

Script Synchronise Timestamps

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?