curl,ftp upload huge file:操作在240000毫秒后超时,收到24514592768字节

时间:2013-01-14 07:47:46

标签: file-upload curl ftp libcurl ftp-client

iam尝试使用ftp上传250 gb文件... iam使用ssh通道进行校验和控制......

得到了这个错误:

curl -v -m 240 --disable-epsv --ftp-skip-pasv-ip --quote "TYPE I" -T 28.tar         ftp://ftpkxxx:xxx@213.65.123.123/2012/12/

[root@tester /opt/tester/output]# ./send-logs-to-194.sh
* About to connect() to 213.65.123.123 port 21 (#0)
*   Trying 213.65.123.123...   % Total    % Received % Xferd  Average Speed   Time      Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0connected
* Connected to 213.65.123.123 (213.65.123.123) port 21 (#0)
< 220 (vsFTPd 2.2.2)
> USER ftpkxxx
< 331 Please specify the password.
> PASS xxx
< 230 Login successful.
> PWD
< 257 "/str1/tester_data_backup"
* Entry path is '/str1/tester_data_backup'
> TYPE I
< 200 Switching to Binary mode.
> CWD 2012
< 250 Directory successfully changed.
> CWD 12
< 250 Directory successfully changed.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (217,65,190,194,29,15).
* Skips 213.65.123.123 for data connection, uses 213.65.123.123 instead
*   Trying 213.65.123.123... connected
* Connecting to 213.65.123.123 (213.65.123.123) port 7439
> TYPE I
< 200 Switching to Binary mode.
> STOR 28.tar
< 150 Ok to send data.
} [data not shown]
  9  250G    0     0    9 22.7G      0  97.3M  0:43:55  0:03:59  0:39:56  102M*         Operation timed out after 240000 milliseconds with 24514592768 bytes received
  9  250G    0     0    9 22.8G      0  97.4M  0:43:54  0:03:59  0:39:55  102M* Closing     connection #0

curl: (28) Operation timed out after 240000 milliseconds with 24514592768 bytes received

我更喜欢ftp而不是scp,因为它比scp更快...用ftp&amp;上传250gb文件的正确方法是什么?校验和

1 个答案:

答案 0 :(得分:0)

您指定允许使用-m(240秒)的最长时间,那么为什么它会在您提出要求后240秒后实际停止?

PS。默认情况下使用TYPE I ...