mc ilm rule export

Syntax

The mc ilm rule export command exports the object lifecycle management configuration for an AIStor bucket.

The mc ilm rule export command outputs to STDOUT by default. You can output the contents to a .json file for archival or ingestion using mc ilm rule import.

Example

Parameters

ALIAS

Required

The alias and full path to the bucket on the AIStor deployment for which to export object lifecycle management rules. For example:

mc ilm rule export myminio/mydata > bucket-lifecycle.json

Global Flags

This command supports any of the global flags.

Examples

Export the Bucket Lifecycle Management Configuration

Required Permissions

For permissions required to export a rule, refer to the required permissions on the parent command.

Behavior

S3 Compatibility

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

AIStor provides no guarantees for other S3-compatible services, As their S3 API implementation is unknown and therefore unsupported.

While mc commands may work as documented, any such usage is at your own risk.