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?
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?