Think before you speak, read before you think.

gsutil

by

in

gsutil versioning get gs://xxx-infra

gs://xxx-infra: Suspended

如果没开启,打开 versioning,Enabling Object Versioning increases storage costs

gsutil versioning set on gs://xxx-infra

gsutil versioning get gs://xxx-infra

gs://xxx-infra: : Enabled

查看所有版本的所有文件

gsutil ls -a gs://xxx-infra

恢复某一个版本的文件

gsutil cp gs://xxx-infra/subnet_list.json#1607987168023139 gs://xxx-infra/subnet_list.json


Comments

Leave a Reply

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