Last active
March 10, 2017 15:30
-
-
Save sfwn/cd07ae5e060d86e633d40af30b0126ae to your computer and use it in GitHub Desktop.
a simple shell script using ossutil for migrating datas between two buckets which you can access but not yours
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ossutl download addr: http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/50452/intl_zh/1488523315888/ossutil | |
# -c specify oss config file | |
# `/root/.ossold` is for source bucket, `/root/.osspaas` is for dest bucket | |
ossutil cp oss://paas oss -r -u -j 20 -c /root/.ossold | |
ossutil cp oss oss://terminus-paas/ -r -u --snapshot-path /root/snapshot-path -j 20 --parallel 3 -c /root/.osspaas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment