Topic "Does /synchronize work with changed files ?"

Author Message
Petr Nowak

Guest


I write small bat and use it to start script:

Code:
"C:\Program Files\WinSCP\WinSCP.exe" /script=script.ftp


Script.ftp:
Code:
option batch on
option confirm off
echo on
open pnowak@WEBtest
option transfer binary
synchronize local d:\BackupsWEBtest\ \Zalohy\
close
exit


Script works fine but only first time. Script is not able to synchronize changed files. Does synchronize support changed files synchronizing ?

I have looked unsuccesfully for answer in documentation and forum too.

Thanks in advance for any help ...
Advertisements
Petr Nowak

Guest


OOPS !!! Sorry... Sad

It seems it's a problem of "option confirm off/on".
Petr Nowak

Guest


After several days of work I'm not able to setup script to synchronize changed files from remote to local (local includes older version of synchronized files). If I delete files on local, synchronization works. Otherways it is not able to synchronize and overwrite older files on local. Whats wrong ? Please help.
Petr Nowak

Guest


What does it mean "Overwrite confirmations are always off for the synchronize command" ? Does it mean it is impossible to overwrite old file with new version when synchronizing ??? (details of my problem and more notes above...).
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Petr Nowak wrote:
What does it mean "Overwrite confirmations are always off for the synchronize command" ? Does it mean it is impossible to overwrite old file with new version when synchronizing ??? (details of my problem and more notes above...).

No it means thatyou are not asked to confirm the overwrite.
Please read this page carefuly.
_________________
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