Topic "simplest way to overwrite only newer file"

Author Message
belonesox
[View user's profile]

Joined: 2013-08-12
Posts: 1
Hello.

I try to find simplest way to put (and overwrite) only newer files. Only one file at time.

* https://winscp.net/eng/docs/scriptcommand_synchronize is not an option, because synchronize automatically create all subdirectories.
* "option confirm off" results unconditional overwriting
* I am very lazy to read output of remote "stat" to compare with local times.

Any ideas?


Thanks all in advance,
Sincerely, Stas Fomin
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
You can make synchronize non-recursive by using -filemask=|*/.
https://winscp.net/eng/docs/file_mask#directory
_________________
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