Hi,
gsutil update
As a quick start example, you can enable versioning on a bucket and work with versions as follows:
gsutil setversioning on gs://my_bucket
gsutil cp file1 gs://my_bucket/obj
gsutil cp file2 gs://my_bucket/obj
gsutil ls -l -a gs://my_bucket/obj
5924 2012-11-27T04:08:16 gs://my_bucket/obj#1353989296246000.1
192 2012-11-27T04:08:28 gs://my_bucket/obj#1353989308897000.1
TOTAL: 2 objects, 6116 bytes (5.97 KB)
gsutil cp -v gs://mfsbucket/obj#1353989296246000.1 old_obj
The gsutil ls "-a" option allows you to see all of the versions of a particular object.
The gsutil cp "-v" option allows you to copy a particular version.
You can use Durable Reduced Availability storage (once you are signed up for the
Limited Preview) as follows:
gsutil mb -c DRA gs://my_dra_bucket
At this point you can upload objects to your bucket and read them as usual (e.g, using the gsutil cp command). You can see the bucket's storage class as follows:
gsutil ls -L -b gs://my_dra_bucket
gs://my_dra_bucket/ :
0 objects, 0.0 B
StorageClass: DURABLE_REDUCED_AVAILABILITY
LocationConstraint: US
...
Thanks,
Mike Schwartz and the Google Cloud Storage Team