Sychronize remote fails after one file transfer.
I am using a synch.txt file (WinSCP v4.3.5) to and Windows Task Scheduler to automate an SFTP transfer. After the Task Scheduler runs there is one file copied even though there are more files to be copied.
My Synch.txt file looks like:
------------------------------------------------------------------------------------
open (SFTP Host info)
option transfer binary
#copies missing local files to the remote host
synchronize remote "i:\mydirectory\" "/"
exit
------------------------------------------------------------------------------------
My synch.log shows:
* 2014-10-02 13:48:36.519 (EScpSkipFile) Upload of file 'FILE.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2014-10-02 13:48:36.519 The server does not support the operation.
* 2014-10-02 13:48:36.519 Error code: 8
* 2014-10-02 13:48:36.519 Error message from server: SSHServerAPI.SFTP.fxp_attrs
* 2014-10-02 13:48:36.519 Request code: 9
. 2014-10-02 13:48:36.519 Script: Failed
. 2014-10-02 13:48:36.519 Closing connection.
. 2014-10-02 13:48:36.520 Sending special code: 12
. 2014-10-02 13:48:36.520 Sent EOF message
Is the script dying because of the error message? I have tried different syntax but I can't seem to get it right. I have also set the WinSCP client to ignor the permission errors.
How can I resolve this?
Thanks.
My Synch.txt file looks like:
------------------------------------------------------------------------------------
open (SFTP Host info)
option transfer binary
#copies missing local files to the remote host
synchronize remote "i:\mydirectory\" "/"
exit
------------------------------------------------------------------------------------
My synch.log shows:
* 2014-10-02 13:48:36.519 (EScpSkipFile) Upload of file 'FILE.txt' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2014-10-02 13:48:36.519 The server does not support the operation.
* 2014-10-02 13:48:36.519 Error code: 8
* 2014-10-02 13:48:36.519 Error message from server: SSHServerAPI.SFTP.fxp_attrs
* 2014-10-02 13:48:36.519 Request code: 9
. 2014-10-02 13:48:36.519 Script: Failed
. 2014-10-02 13:48:36.519 Closing connection.
. 2014-10-02 13:48:36.520 Sending special code: 12
. 2014-10-02 13:48:36.520 Sent EOF message
Is the script dying because of the error message? I have tried different syntax but I can't seem to get it right. I have also set the WinSCP client to ignor the permission errors.
How can I resolve this?
Thanks.