Synchronize and retry files

Advertisement

DevOn99
Joined:
Posts:
1

Synchronize and retry files

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,317
Location:
Prague, Czechia

Re: Synchronize and retry files

You need to either use "option batch continue" or loop whole script until it completely succeeds.
_________________
Martin Prikryl

Reply with quote

AJ
Guest

Re: Synchronize and retry files

martin 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?

Reply with quote

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!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,317
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

Reply with quote

Advertisement

You can post new topics in this forum