Topic "using synchronize option in script and do not want to delete"

Author Message


I am using a script at the command line and its working great for sychronizations. My question that i cannot find an option for is this:

When synchronizing from remote to local, is there a way not to delete a file locally if it does not appear in remote but appears in local? or should i not use the synchronize command?

here is my script:

# Issue winscp3 /console /script="fll path to script/config file"
option batch on
# runs wincp in non-interactive mode
option confirm off
# Connect
open connection name
# options are remote local or both ( both is a true mirror with the newest timestamp winning.
synchronize remote D:\folder
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
option synchdelete off
Martin Prikryl


martin wrote:
option synchdelete off

that did it thanks!

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