Skip to content

Instantly share code, notes, and snippets.

@terryoy
Created May 1, 2014 02:09
Show Gist options
  • Save terryoy/8d4c24e8de2a65ec347b to your computer and use it in GitHub Desktop.
Save terryoy/8d4c24e8de2a65ec347b to your computer and use it in GitHub Desktop.
aliyun-oss-tools
# it depends on aliyun-oss SDK here
# http://help.aliyun.com/view/13438815.html
#!/bin/bash
# set bucket here
bucket=clebadge-dev
for filename in `ls $1`
do
osscmd put $1$filename oss://$bucket/$1$filename
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment