ikanaide
ikanaide

Reputation: 127

How can I set lifecycle rule for object (minIO)?

I'm looking for solution that allow me to set lifecycle policy for object in minio storage.

What do I want?
I want to delete objects from minIO storage after 30 min.

Possible, but not suitable solution

  1. Chronos + mc rm -f --older-than 30m.
  2. AWS S3 Lifecycle rule (it doesn't allow to set lifecycle using minutes).

Upvotes: 2

Views: 10605

Answers (2)

mc rm --recursive --dangerous --force --older-than 30m local

"local" should be described in the file ~/.mc/config.json

Upvotes: 2

逍遥子k
逍遥子k

Reputation: 317

According to this minio

The lifecycle checks every 24 hours. So the 30 mins expiration won't work.

Upvotes: 2

Related Questions