mc ilm import
Imports lifecycle configuration in JSON format from standard input (STDIN).
Run mc ilm import to import all object lifecycle rules in JSON
format from the standard input (STDIN).
You can import object lifecycle rules from a JSON file into Data Fabric from an exported JSON file.
See mc ilm export to export object lifecycle rules from Data Fabric into a JSON file.
Syntax
mc ilm import TARGET
Parameters
| Parameter | Description |
|---|---|
--help |
Use this option to display the command help. |
Example
-
Import the object lifecycle rules present in 'lifecycle.json' for the bucket 'mybucket' on the alias 'myminio'.
mc ilm export myminio/mybucket < lifecycle.json - Import the object lifecycle rules for the bucket 'mybucket' on the alias
'myminio' from STDIN. You must enter the JSON contents on STDIN.
mc ilm import myminio/mybucket