gsutil
gsutil ls
gsutil mb gs://abc
gsutil cp infor.html gs://peterbucket/
gsutil acl set acl.txt gs://peterbucket/infor.html
gsutil acl get gs://peterbucket/1.jpg > acl.txt
=====================================================
cal.txt
{
"entity": "allUsers",
"role": "READER"
}
=====================================================
gsutil -m cp -R gs://bundle_asia_dra/HTC .
=====================================================
gsutil cp -r gs://A/ gs://B/
gsutil cp -r gs://bundle_asia_dra/iStagingFurniture/iOS/single/paint/ChangYuHuai gs://bundle_asia_dra/iStagingFurniture/ios_paint/
=====================================================
gsutil -m acl set -R -a public-read gs://bundle_asia_dra/iStagingFurniture/ios_paint/
=====================================================
gsutil du gs://bucketname
=====================================================
=====================================================
download folder recursively
gsutil -m cp -R gs://bundle_asia_dra/HTC .
copying a folder from A to B
gsutil cp -r gs://A/ gs://B/
gsutil cp -r gs://bundle_asia_dra/iStagingFurniture/iOS/single/paint/ChangYuHuai gs://bundle_asia_dra/iStagingFurniture/ios_paint/
=====================================================
share file publicly
gsutil -m acl set -R -a public-read gs://bundle_asia_dra/iStagingFurniture/ios_paint/
=====================================================
Show size of all objects
=====================================================
Sync two bucket or directory
gsutil rsync -d -r gs://mybucket1 gs://mybucket2
=====================================================
沒有留言:
張貼留言