Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Faster way to copy from US to china sever

by Illuminatus (Curate)
on Oct 15, 2012 at 21:12 UTC ( #999182=note: print w/ replies, xml ) Need Help??


in reply to Faster way to copy from US to china sever

Everything that blue_cowdawg says is accurate. There are really only 2 ways that you could make things appreciably faster:

  1. compress the file before the copy, or use a copy method that compresses as it copies
  2. split the file into pieces, and do the transfer in parallel (and reassemble it afterwards). In some cases, a server won't allow a single connection to use more than a pre-set transfer limit, but will allow multiple connections that can sum to more than the single max rate. As blue_cowdawg also points out, this method won't help if some intervening hop ends up being the bottleneck
With no more info than 'a server in China', it's hard to be more specific. However, given the file size, and the likely sub-optimal transfer rate, it would be wise to use something like Net::FTPSSL, where the 'put' command allows you to pass an offset of -1, and it will attempt to resume where it left off.

fnord


Comment on Re: Faster way to copy from US to china sever

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-12-20 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls