Topic "Download content not same as source file"

Author Message
weh
[View user's profile]

Joined: 2017-07-11
Posts: 2
The powershell script in https://winscp.net/eng/docs/library_session_synchronizedirectories have been used to synchronize the files in destination folder with the remote location. Recently there are few cases which the content in destination folder does not match with remote location. Example the source file in remote location has 20 lines but the file in destination location content the first 10 lines twice and the remaining 10 lines at the end of the source file were missing in the destination file. Just suspect it might due to connection disconnect before download complete and issue occur when connection resume. How to change the script so that the files in destination location will be overwrite when connection issue happen instead of resume using powershell script? Or any other suggestion on how to fix this issue?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26462
Location: Prague, Czechia
What protocol are you using? Do you have any log file showing what did really happen?
weh
[View user's profile]

Joined: 2017-07-11
Posts: 2
martin wrote:
What protocol are you using? Do you have any log file showing what did really happen?


I am using SFTP with private key. File attached
Sync.log (20.25 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26462
Location: Prague, Czechia
Thanks for the log.

I do not see anything wrong on WinSCP side. What SFTP server is that? It pretends to be OpenSSH, but clearly it's not. At least not any official OpenSSH build.

Are you able to reproduce the problem? If you are, can you send us log file on level Debug 2?
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License