Topic "Synchronize and retry files"

Author Message
DevOn99
[View user's profile]

Joined: 2013-03-29
Posts: 1
Hello

I'm backing up part of a fileserver.

I use the syntax :
"C:\Program Files (x86)\WinSCP\winscp.com" /log=c:\adminscripts\DonnerstagLog.txt /command "option reconnecttime 10000" "option batch continue" "option confirm off" "open ftp://USER:PASSWORD@backup.serverkompetenz.de" "cd /Donnerstag" "synchronize remote d:\ -delete" "bye"

Had a lot of trouble getting this to work as the backup space sometimes refuses the connection (the hoster is not willinmg to invest time in fixing the problem):

425 Unable to build data connection: Connection refused

This "issue" is normally gone after some seconds.

After that, the "Asking User..." came in the log file and the sync command ended.
Only with "option batch continue" I was able to get the command to go on to the next file.

Is it possible to set the answer to the "Asking User..." to retry?

With "option batch on" the synchronize command just quits after "connection refused" and "asking user".

How can I fix this?

Any help is highly appreciated. Thx

DevOn
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
You need to either use "option batch continue" or loop whole script until it completely succeeds.
_________________
Martin Prikryl
AJ

Guest


prikryl wrote:
You need to either use "option batch continue" or loop whole script until it completely succeeds.


For me when using the "option batch continue" it picks "Skip" and the file never gets downloaded, am I doing something wrong then?
Guest




Hi!

Ive got the same Problem.
If Im using "option batch continue" it allway use "Skip" as default.
If Im using "option batch off" I can use r for "Retry". But I dont want to type everytime r.
Is there any opportunity to set the default to "Retry" ?

I hope anyone can help me/us.
Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Anonymous wrote:
Ive got the same Problem.
If Im using "option batch continue" it allway use "Skip" as default.
If Im using "option batch off" I can use r for "Retry". But I dont want to type everytime r.
Is there any opportunity to set the default to "Retry" ?

What particular prompt do you refer to?
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
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