Script Synchronise Timestamps

Advertisement

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum