Topic "Save prior versions during synchronize"

Author Message
poojanwagh
[View user's profile]

Joined: 2008-08-20
Posts: 4
Hi. When I synchronize to a remote server, I'd like WinSCP to save prior versions (backup copies) of files upon re-write or delete.

For example, if I start with the following files:
Code:

local (version)           remote (version)
---------------           ----------------
readme.txt (1)            readme.txt (1)


And then modify readme.txt locally:
Code:

local (version)           remote (version)
---------------           ----------------
readme.txt (2)            readme.txt (1)


Then I do a sync, I'd like two things to happen: 1) a backup copy of readme.txt is created remotely, either using a specified filename or in a separate directory; and 2) the actual sync from local to remote is performed:

Step 1:
Code:

local (version)           remote (version)
---------------           ----------------
readme.txt (2)            readme.txt (1)
                          => readme.txt.1.bak


Step 2:
Code:

local (version)           remote (version)
---------------           ----------------
readme.txt (2)            readme.txt (2)
                          readme.txt.1.bak
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Have you tried remote recycle bin?
_________________
Martin Prikryl
poojanwagh
[View user's profile]

Joined: 2008-08-20
Posts: 4
prikryl wrote:
Have you tried remote recycle bin?


That's exactly what I need. I didn't see that in the docs. (I did look, but apparently not long enough.) Thanks! I take it I can use it with the synchronize feature?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
poojanwagh wrote:
I take it I can use it with the synchronize feature?

Correct.
_________________
Martin Prikryl
Ricoman

Guest


The renaming scheme that was suggested is much better than the remote recycle bin in some situations.

First, remote recycle bin is only available for SFTP, but renaming files would be available for all flavors of FTP.

Second, keeping the versioned (backup) file in the same directory as the original one allows for easy comparison between all versions. (e.g. easier command to a "diff" program etc)

I feel that simple backup-file renaming is a MUST for any good FTP program, however I have only seen acceptatble implementations of it in AceFTP (which has many other problems of its own.)
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Ricoman wrote:
First, remote recycle bin is only available for SFTP, but renaming files would be available for all flavors of FTP.

Neither of these is be possible with SCP. With FTP both is possible, it is just not implemented yet. So this is not an argument.

That does not mean I'm against this. It more people ask for that...
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
This request has been added to tracker.
_________________
Martin Prikryl
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