mc ilm rule import

Syntax

The mc ilm rule import command imports an object lifecycle management configuration and applies it to an AIStor bucket.

The mc ilm rule import command imports from STDIN by default. You can input the contents from a .json file, such as one produced by mc ilm rule export.

Parameters

ALIAS

Required

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

mc ilm rule import myminio/mydata < bucket-lifecycle.json

Global Flags

This command supports any of the global flags.

Examples

Import the Bucket Lifecycle Management Configuration

Required Permissions

For permissions required to import rules, refer to the required permissions on the parent command.

Behavior

Importing Configuration Overrides Existing Rules

mc ilm rule import replaces the current bucket lifecycle management rules with those defined in the imported JSON configuration.

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.