Skip to content

Instantly share code, notes, and snippets.

@sfwn
Last active March 10, 2017 15:30
Show Gist options
  • Save sfwn/cd07ae5e060d86e633d40af30b0126ae to your computer and use it in GitHub Desktop.
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
# 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