mirror of
https://github.com/minio/minio.git
synced 2024-12-26 15:15:55 -05:00
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_test.go | ||
expiration.go | ||
filter_test.go | ||
filter.go | ||
lifecycle_test.go | ||
lifecycle.go | ||
noncurrentversion.go | ||
prefix.go | ||
rule_test.go | ||
rule.go | ||
tag.go | ||
transition_test.go | ||
transition.go |