Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-09-22 18:09 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (129 votes). Check out past polls.