Topic "Download new/updated files without overwriting old"

Author Message


I'd like to download new (defined as file names that have not been seen before) and also updated (defined as file names that have been seen before, but with newer timestamps) files. However, I would like the updates to NOT overwrite existing copies. Files that are neither new nor changed should not be transferred again.

In other words, I'd like to keep version histories.

So if foo.txt exists in both local and remote, but remote has changed, then I would like to transfer foo.txt but have it renamed to foo.001.txt (or anything unique that connotes the version). The next time I connect and find that foo.txt has been updated again, it should be transferred down, but now as foo.002.txt.

Does anyone have a script that can help here?

Many thanks.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
WinSCP cannot do that on its own. You need to combine its functionality with some external script or tool that handles versioning.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License