Topic "Preserve overwritten remote files to recycle bin for SCP"

Author Message
Guest




Hi,

It would be really great if the option "Preserve overwritten remote files to recycle bin" (as described at https://winscp.net/eng/docs/ui_login_environment#recycle_bin) would also work for SCP (and eventually FTP). I think this shouldn't be too difficult. I really like to make backups of the files I've overwritten. Unfortunately many editors don't support such features and I thought WinSCP would be the ideal solution, but then I figured out that the option only works for SFTP at the moment.

Thanks in advance!

Jeroen
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
This cannot be done. At least not for batch (multiple-file) transfers as with SCP the upload is server-driven. It may be solved for single file uploads, but the behaviour will become pretty inconsistent then? Smile
_________________
Martin Prikryl
Guest




Why can this be done with SFTP and not with SCP? It seems to me that this can do the trick:

When transferring a file, before transferring it to the target directory, always first copy the current file in the target directory with the same name (if it exists) to the "recycle bin" (i.e. /tmp) with filename name-timestamp.ext.

This may take some extra time, but it is to the user to decide to enable it (perhaps you can put a warning next to the option). Now it is absolutely not possible, then it is! I think many users would use this feature, even it will make the transfers a little bit slower.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
With SCP, once batch transfer is started no other action can take place, until the batch transfer finishes. Also when uploading whole directory, there's no way to check whether the files in the directory already exists on remote site. That's also the reason why there are not overwrite confirmations for uploads of files in folder for SCP.
_________________
Martin Prikryl
Guest




Okay, thanks for your help!
Advertisements

You can post new topics in this forum






Search Site

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