mirror of https://github.com/minio/minio.git
3da9ee15d3
This unit allows users to limit the maximum number of noncurrent versions of an object. To enable this rule you need the following *ilm.json* ``` cat >> ilm.json <<EOF { "Rules": [ { "ID": "test-max-noncurrent", "Status": "Enabled", "Filter": { "Prefix": "user-uploads/" }, "NoncurrentVersionExpiration": { "MaxNoncurrentVersions": 5 } } ] } EOF mc ilm import myminio/mybucket < ilm.json ``` |
||
---|---|---|
.. | ||
action_string.go | ||
and.go | ||
error.go | ||
expiration.go | ||
expiration_test.go | ||
filter.go | ||
filter_test.go | ||
lifecycle.go | ||
lifecycle_test.go | ||
noncurrentversion.go | ||
prefix.go | ||
rule.go | ||
rule_test.go | ||
tag.go | ||
transition.go | ||
transition_test.go |