2

私は(GBS 300以上)は、既存のオブジェクトのセットのストレージ・クラスas advised in this postを変更しようとしていた:私が最初に一つのファイルでそれを試してみました既存オブジェクトのストレージクラスを変更する請求可能オペレーションですか?

:その後、私はより多くの15でそれを試してみました

[email protected]:~$ gsutil ls -L gs://some-bucket/sub-dir/audioArch.mp3 
gs://some-bucket/sub-dir/audioArch.mp3: 
    Creation time:   Fri, 29 Jul 2016 00:52:51 GMT 
    Update time:   Fri, 05 Aug 2016 15:40:51 GMT 
    Storage class:   DURABLE_REDUCED_AVAILABILITY 
    Content-Language:  en 
    Content-Length:   43033404 
    Content-Type:   audio/mpeg 
    ... ... 

[email protected]:~$ gsutil -m rewrite -s coldline gs://some-bucket/sub-dir/audioArch.mp3 
- [1/1 files][ 41.0 MiB/ 41.0 MiB] 100% Done 
Operation completed over 1 objects/41.0 MiB. 

[email protected]:~$ gsutil ls -L gs://some-bucket/sub-dir/audioArch.mp3 
gs://some-bucket/sub-dir/audioArch.mp3: 
    Creation time:   Sun, 30 Oct 2016 23:49:34 GMT 
    Update time:   Sun, 30 Oct 2016 23:49:34 GMT 
    Storage class:   COLDLINE 
    Content-Language:  en 
    Content-Length:   43033404 
    Content-Type:   audio/mpeg 
    ... ... 

、およびサブディレクトリ内のオブジェクトの残りの部分に... ☺のように動作しますが、が操作を上書きします&更新時間!

は私も2フォローアップのクエリを持っていた:

  1. gsutil rewrite運転請求可能ですか?
  2. 作成時間を保存できますか?

多くのありがとう。

乾杯!

fynali

答えて

2

はい、それはクラスとして動作請求可能である(それは storage.objects.rewriteを使用して、cloud.google.com/storage/pricingを参照されたいです)。いいえ、 の更新を保存する方法はありません。 は新しいオブジェクト生成を作成するためです。

-Travis Hobrla in comment here

関連する問題