diff --git a/docs/bucket/lifecycle/README.md b/docs/bucket/lifecycle/README.md index 9a5b2c873..456686cd8 100644 --- a/docs/bucket/lifecycle/README.md +++ b/docs/bucket/lifecycle/README.md @@ -84,6 +84,11 @@ e.g., To scan objects stored under `user-uploads/` prefix and remove versions ol } ``` +This JSON rule is equivalent to the following MinIO Client command: +``` +mc ilm rule add --noncurrent-expire-days 365 --prefix "user-uploads/" myminio/mydata +``` + ### 3.2 Automatic removal of noncurrent versions keeping only most recent ones after noncurrent days It is possible to configure automatic removal of older noncurrent versions keeping only the most recent `N` using `NewerNoncurrentVersions`. @@ -108,6 +113,11 @@ e.g, To remove noncurrent versions of all objects keeping the most recent 5 nonc } ``` +This JSON rule is equivalent to the following MinIO Client command: +``` +mc ilm rule add --noncurrent-expire-days 30 --noncurrent-expire-newer 5 myminio/mydata +``` + #### 3.2.a Automatic removal of noncurrent versions keeping only most recent ones immediately (MinIO only extension) This is available only on MinIO as an extension to the NewerNoncurrentVersions feature. The following rule makes it possible to remove older noncurrent versions