overwritten files in synchronize, instead change names

Advertisement

@yourappisgreat
Guest

overwritten files in synchronize, instead change names

1. congratulations, app is great! :)

2. Now about my problem :)

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
file.doc

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:
winscp.com /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?

Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: overwritten files in synchronize, instead change names

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.

Reply with quote

Advertisement

You can post new topics in this forum