Stay organized with collections
Save and categorize content based on your preferences.
versioning - Enable or suspend versioning for one or more buckets
Synopsis
gsutil versioning set (on|off) gs://<bucket_name>...
gsutil versioning get gs://<bucket_name>...
Description
The Versioning Configuration feature
enables you to configure a Cloud Storage bucket to keep old
versions of objects.
The gsutil versioning command has two sub-commands:
Set
The "set" sub-command requires an additional sub-command, either "on" or
"off", which, respectively, will enable or disable versioning for the
specified bucket(s).
Get
The "get" sub-command gets the versioning configuration for a
bucket and displays whether or not it is enabled.