Posted: 2014-01-22 12:40
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?
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.
You can post new topics in this forum
And it's free!