Google Storage for Developers 初印象

前天收到 Google Storage (GS) for Developers 的注册邀请,我都忘记我曾经提交过申请了,还好 Google 的排队系统记得 :-)   昨晚试用了一下,初印象就是一个类似 Amazon S3 的存储服务。很好,我正好需要一个类似 S3 的在线存储服务。

Google Storage for Developers is a RESTful service for storing and accessing your data on Google’s infrastructure.

简单地说,就是你可以把数据存放在 Google 的云计算基础设施里,并使用 Google 或者第三方提供的一系列 services, APIs, tools 来访问和操作你的数据。

目前可用的工具

Developer Keys

第一次使用 GSUtil 时,会要求提供 Access Key 和 Secret Key。这对 Keys 可以通过 Key Management tool 来创建。

使用 GSUtil

创建 bucket
$ gsutil mb gs://musics
注意遵循 bucket 命名规则

上传对象到 bucket
$ gsutil cp *.mp3 gs://musics
对象通常就是文件夹和文件。

列出 buckets
$ gsutil ls

列出某 bucket 中的对象
$ gsutil ls gs://musics

移动对象
$ gsutil mv gs://musics/*.mp3 gs://newplace/

重命名
$ gsutil mv gs://musics/xyz.mp3 gs://musics/abc.mp3

下载对象到本地
$ gsutil cp gs://musics/*.mp3 file://MyMusics/

删除对象
$ gsutil rm gs://musics/xyz.mp3

删除 bucket
$ gsutil rb gs://musics

开发

如果你需要开发自己的应用使用 GS,目前 Google 提供了一个 Python library,是基于 Boto 改写,GSUtil 使用的也是它。

在 GSUtil 的安装目录下有一个 cloudreader,这是一个 sample app,可以运行在 Google App Engine (GAE) 中。GAE 和 GS 实在是绝佳的搭档。

This entry was posted in Cloud Computing and tagged , . Bookmark the permalink.

One Response to Google Storage for Developers 初印象

  1. Bein says:

    那几个选项该怎么填写呀。请教请教。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">