WinScp always overwrite when uploading an existing file

Advertisement

mmako
Joined:
Posts:
2
Location:
Portugal

WinScp always overwrite when uploading an existing file

As the title indicates WinScp always overwrite a remote file no matter what the defined "Transfer Settings" option | setting is defined.

Everytime that I try to upload a file, it is copied even if it is already present...

Tested all the existing flags and presets always with the same "copy always" behaviour.

Using the latest 5.17.7 version on Windows 10.

Although noticed that the timedate of the server is one hour earlier.
could it be the cause of this strange behaviour ?

More details :
Server protocol information:
Remote system = FreeBSD aaaa.local 12.1-RELEASE-p7 FreeBSD 12.1-RELEASE-p7 #0 r343211M: Mon Jul 20 16:59:25 CEST 2020 root@dev.zoon01@xigmanas.com:/usr/obj/xigmanas/usr/src/amd64.amd64/sys/XIGMANAS-amd64 amd64
File transfer protocol = SCP
Cryptographic protocol = SSH-2
SSH implementation = OpenSSH_8.2 FreeBSD-openssh-portable-8.2.p1_1,1
Encryption algorithm = AES-256 SDCTR (AES-NI accelerated)
Compression = No
-------
Can change permissions = Yes
Can change owner/group = Yes
Can execute arbitrary command = Yes
Can create symbolic/hard link = Yes/Yes
Can lookup user groups = Yes
Can duplicate remote files = Yes
Can check available space = No
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
File transfer protocol : SCP

Reply with quote

Advertisement

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

Re: WinScp always overwrite when uploading an existing file

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

mmako
Joined:
Posts:
2
Location:
Portugal

Winscp full log

As requested here ( in attach ) the log ...

Nonetheless re-installed ( cleaning up everything from the previous install) and noticed that the issue that I am reporting is happening when executing the copy and sending to the "background"only .

In "Non Background" mode it asks if a directory is already present or not ...
But even then if tramples ( copies over ) any file equally present .
  • mrk2@10.212.212.11.log.7z (22.23 KB, Private file)
Description: Requested log with already present directory

Reply with quote

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

Re: Winscp full log

mmako wrote:

Nonetheless re-installed ( cleaning up everything from the previous install) and noticed that the issue that I am reporting is happening when executing the copy and sending to the "background"only .
If you want confirmations for background transfers, uncheck No confirmations for background transfers:
https://winscp.net/eng/docs/ui_pref_background

In "Non Background" mode it asks if a directory is already present or not ...
But even then if tramples ( copies over ) any file equally present .
That's a limitation of SCP. Switch to SFTP protocol for better behaviour.

Reply with quote

Advertisement

You can post new topics in this forum