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:
40,552
Location:
Prague, Czechia

Re: Synchronize and retry files

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

Reply with quote

AJ
Guest

Re: Synchronize and retry files

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

Advertisement

You can post new topics in this forum