I have WinSCP version 5.13 running on Windows 8. I am transferring approximately 500MB sized files from a script. When the connection to the server is broken, WinSCP resumes transfer of the file. However, it doesn't appear to pick it where it left off. Instead, it seemingly starts transferring the entire file from the beginning. This process repeats until the entire file is successfully transferred or WinSCP finally gives up. I have tried both FTP and SFTP protocols. There have been no WinSCP upgrades. WinSCP is invoked from a .bat file as follows:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\StreamRecordings\tools\WinSCP.log" /ini=nul /script="C:\StreamRecordings\tools\StreamRecordingsTransfer.txt"
The WinSCP script is:
# connect to FTP server open ftp://name:email@example.com/ #open sftp://name:firstname.lastname@example.org/ -hostkey="ssh-rsa 2048 thekey" # upload file lcd E:\StreamRecordings\stagingArea put -resume -filemask=*>50M *.mp4 #put *.mp4 # exit WinSCP exit
I have attached a snippet of the log file. Interestingly, in the log at line number 79 it appears that WinSCP picks up where it left off, but if that were the case, I would expect that the entire file would eventually be transferred.
Another piece of information is that when FileZilla experiences the same disconnect, it restarts and picks up where it left off and will transfer the entire file. There are maybe 4 or 5 disconnects that it encounters.
Thanks for your help!