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

Author Message
vipkat

Guest


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
close
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
option synchdelete off
_________________
Martin Prikryl
vipkat

Guest


prikryl wrote:
option synchdelete off


that did it thanks!
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