Differences

This shows you the differences between the selected revisions of the page.

2010-05-06 2010-05-12
Restored revision 1272353245. Undoing revision 1273128974. (martin) (hidden) Issue with transfer time for the large size data (ipesin) (hidden)
Line 30: Line 30:
-===== Example of Support Request for Scripting ===== +Subject: **Issue with transfer time for the large size data** 
-> Subject: **Trouble setting server timeout via command line** + 
-> +I have to transfer 33gb (oracle dmp file) from one network box to another and it takes an extremely long time. So far I was able to transfer 19Gb that took more than 8 hours. 
-> I have a client with a slow FTP server, it takes 25 seconds or so to connect. Whenever I attempt to add the ''-timeout=xxx'' switch to the end of my ''open'' command, WinSCP just bails out. No session log file is even created. If I remove the ''-timeout'' switch, it connects. +I'm trying to execute script that run by the .bat file. In the forum I found that SFTP takes speed  Generally slowest (encryption and necessity to wait for packet confirmations)http://winscp.net/eng/docs/faq_slow 
-> +Are there any way to improve transfer performance? We are using 4.2.7(Build 758) version. In order to keep script running after the initialization I added -timeout=900 parameter 
-> Here is the command line:\\ + 
-> ''winscp.exe /console /script=test.txt /log=log.txt'' +Following is the script example which is executed from the "host_server": 
-> +--------------------------------------------------------------------------------------- 
-> Here is the script:\\ +option batch on 
-> ''option batch on''\\ +open user:password@ipaddress -timeout=900 
-> ''option confirm off''\\ +get 33GB_FILE.DMP "\\host_server\d$\Data\33GB_FILE.DMP&quot
-> ''open user:pass@site -timeout=60''\\ +close 
-> ''option transfer binary''\\ +exit
-> ''get *05152008*''\\ +
-> ''close''\\ +
-> ''exit'' +
-> +
-> After running the script I get following in console:\\ +
-> ''batch          on''\\ +
-> ''confirm ········off''\\ +
-> ''Too many parameters for command 'open'.'' +
-&gt+
-> Using WinSCP 4.0.7 on Windows 2000.+

Last modified: by ipesin