Topic "Automatically reconnect in console mode?"

Author Message
janosh
[View user's profile]

Joined: 2013-05-16
Posts: 2
Location: Germany
I'm using WinSCP 5.1.4

I am using the "keep update" feature to sync a local folder with my remote folder over SFTP.

Command Line: "C:\...\winscp514\WinSCP.exe" /console /script="myscript.txt"

myscript:
open mysession
option reconnecttime 120
keepuptodate "D:\Hosted\private" "/home/host1/private" -delete -filemask="*.php"

If the connection temporarily crashes, it says "Network error: Software causes connection abort / Session 'mysession' closed / No session."

Is there a way to config, so WinSCP tries to re-connect automatically Question

Thanks for your help
rgds,
janosh
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
No, this is not supported. Though you can loop the whole script in a .bat file (make sure you use winscp.com, not .exe).
_________________
Martin Prikryl
janosh
[View user's profile]

Joined: 2013-05-16
Posts: 2
Location: Germany
thanks for your answer. what is the effect of using the .com i/o .exe file? in case there is no network problem between two loops, will there be two instances of winscp? or will the second call terminate/replace the first one?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
For details, see:
http://winscp.net/eng/docs/executables
_________________
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