Enable Object Versioning

You can enable versioning using one of the following:

  • At bucket creation
  • Console UI (WebUI)
  • MinIO AIStor Client CLI

Developers can also enable versioning on buckets through an S3-compatible SDK

Enable versioning at bucket creation

When creating a bucket in the Console, select either Versioned as the bucket Type.

You can choose to disable versioning for objects that exist only as folder organization. You can also add one or more prefixes to ignore for versioning.

If you select Locked as the bucket Type, this also enables versioning. Versioning is required to enable WORM locking.

Use the mc mb command with the --with-versioning flag to enable versioning on the bucket.

mc mb ALIAS/bucket --with-versioning

Replace ALIAS with the alias of the deployment.

Enable versioning on an existing bucket

You can enable versioning on a bucket that already has objects. Objects created prior to enabling versioning have a null version ID.

  1. Select the Buckets section of the Console UI to access bucket creation and management functions.

    Console UI Bucket Management

  2. Select the bucket to modify.

  3. Select the vertical dot stack button, then Edit Bucket.

    Console UI Bucket Management

  4. Toggle the Versioning radio button to enable versioning on the bucket.

You must have already installed the AIStor Client and defined an alias for the deployment.

Use the mc version enable command to enable versioning on an existing bucket:

mc version enable ALIAS/BUCKET
  • Replace ALIAS with the alias of a configured MinIO AIStor deployment.
  • Replace BUCKET with the target bucket on which to enable versioning.

On this page