bm version enable

Syntax

The bm version enable command enables versioning on the specified bucket.

The following command enables versioning for the mybucket bucket on the mybuckit Buckit deployment:

 bm version enable mybuckit/mybucket

The command has the following syntax:

bm [GLOBALFLAGS] version enable ALIAS                \
                                --exclude-folders    \
                                --excluded-prefixes
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

ALIAS
Required

The alias of a Buckit deployment and the full path to the bucket for which to enable versioning. For example:

bm version enable mybuckit/mybucket
--exclude-folders
Optional

Disable versioning on all folders (objects whose name ends with /) in the specified bucket.

--excluded-prefixes
Optional

Disable versioning on objects matching a list of prefixes, up to 10. The list of prefixes match all objects containing the specified strings in their prefix or name, similar to a regular expression of the form prefix*. To match objects by prefix only, use prefix/*.

For example, the following command excludes any objects containing _test or _temp in their prefix or name from versioning:

bm version enable --excluded-prefixes "_test, _temp" mybuckit/mybucket

Global Flags

This command supports any of the global flags.

Example

Enable Bucket Versioning

Use bm version enable to enable versioning for a bucket:

bm version enable ALIAS/PATH
  • Replace ALIAS with the alias of a configured Buckit deployment.

  • Replace PATH with the bucket on which to enable versioning.

Behavior

Bucket Versioning with Existing Data

Enabling bucket versioning on a bucket with existing data immediately creates a NULL value version ID for each unversioned object.

S3 Compatibility

The bm commandline tool is built for compatibility with the AWS S3 API and is tested with Buckit and AWS S3 for expected functionality and behavior.

Buckit provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While bm commands may work as documented, any such usage is at your own risk.