Welcome to the upcoming version of the MinIO Documentation! The content on this page is under active development and may change at any time. If you can't find what you're looking for, check our legacy documentation. Thank you for your patience.

mc lock

Description

The mc lock command sets or gets the bucket default object lock configuration. Object locking enables Write-Once Read-Many (WORM) object retention for a configurable period of time.

DEPRECATED

mc lock was deprecated in RELEASE.2020-09-18T00-13-21Z. Use mc retention to set, retrieve, or clear the bucket default object lock configuration.

For older versions of mc, use mc lock --help for usage.