Sync script does not sync remote folder

Advertisement

james.chim
Joined:
Posts:
6
Location:
Hong Kong

Sync script does not sync remote folder

This is how I write the script:
open ftp://********
option reconnecttime off
synchronize remote -delete D:\FTP\MPZ\TH\send /send
exit
The attached log write that it found the new files but it does not copy to the remote folder:
. 2019-06-14 08:05:26.506 Local file 'D:\FTP\MPZ\TH\send\59_2912203\backup\S1_D59_C1_P49.MPZ' [2019-06-13T01:46:01.217Z] [7045] is new
. 2019-06-14 08:05:26.506 Local file 'D:\FTP\MPZ\TH\send\59_2912203\backup\S1_D59_C1_P50.MPZ' [2019-06-13T01:46:33.273Z] [632395] is new

Reply with quote

Advertisement

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

Re: Cannot upload, uploaded to Google drive

There's nothing wrong with those specific file. It's your whole script that fails, because the server aborts the connection:
> 2019-06-14 08:06:18.464 MLSD
. 2019-06-14 08:06:18.464 Connecting to 127.0.0.1:62528 ...
< 2019-06-14 08:06:18.869 421 No-transfer-time exceeded. Closing control connection.
. 2019-06-14 08:06:18.869 Could not retrieve directory listing
. 2019-06-14 08:06:18.869 Asking user:
. 2019-06-14 08:06:18.869 Error listing directory '/send/69_2911203/live'. ("Could not retrieve directory listing","No-transfer-time exceeded. Closing control connection.")
< 2019-06-14 08:06:18.869 Script: Error listing directory '/send/69_2911203/live'.
< 2019-06-14 08:06:18.869 Script: Could not retrieve directory listing

< 2019-06-14 08:06:18.869 No-transfer-time exceeded. Closing control connection.
. 2019-06-14 08:06:18.869 Script: Failed
. 2019-06-14 08:06:18.869 Disconnected from server
. 2019-06-14 08:06:18.869 Script: Failed
< 2019-06-14 08:06:18.869 Script: Lost connection.
< 2019-06-14 08:06:18.869 Script: Disconnected from server
. 2019-06-14 08:06:18.869 Script: Exit code: 1
Try upgrading to the latest version of WinSCP. It should reconnect in such scenario.

Reply with quote

Advertisement

You can post new topics in this forum