Open bohanyang opened 6 years ago
Can you please describe your use case in detail? As by design, ossutil can upload/download anything to/from OSS.
Uploading from US to China, the network could be very very very slow and we may use a (relay) proxy which has better connectivity to Chinese network.
Golang has its own network implementation and it is not possible to use something like proxychains. But also since the proxy implementation is already in golang's own network package, it may not be so difficult to support this feature. I just know a little about Golang, otherwise I'll try to make pull request... Thank you very much!
Really appreciate your feedback on this topic!
Per my understanding, you could configure your network to use proxy. As long as you use region/endpoint in China, might your data transition will go through proxy. Currently ossutil does not care that.
As for your case, US also have data center. So I would recommend you to use the endpoint in US, e.g., oss-us-west-1.aliyuncs.com, or oss-us-east-1.aliyuncs.com. If you still want to copy your data to Chinese data center, might there is a way you copy them via internal network.
We need upload/download through proxy.