Topic "overwritten files in synchronize, instead change names"

Author Message


1. congratulations, app is great! Smile

2. Now about my problem Smile

I would like to create a script which will be not erase old files but change them names.
What I mean? Example

a) On HDD I have a file

b) script upload file to FTP

c) on HDD file.doc is change.

>> d) on FTP script change name from file.doc to file%date%.doc (or something like that)

e) than from HDD upload file.doc to FTP

Now, my script looks like this:
Code: /command "option batch continue" "open backup" "synchronize remote -criteria=time,size X:\path\ /directory" "close" "exit"

But script replace old files on FTP (delete old files, but it could just change names)

Is it possible to do something like this?

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
WinSCP cannot do this for you. This is a way too specific request.
You can use synchronize -preview mode with enabled XML logging. Then process the XML log to find a files to be replaced and rename them. Only after that, execute the actual synchronization.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License