Skip to content
Snippets Groups Projects
Verified Commit 7f6a9c5c authored by Hugo Renard's avatar Hugo Renard
Browse files

feat: archive version only after 90 days

parent f4df3221
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
"ID": "ArchiveVersions",
"NoncurrentVersionTransition": {
"StorageClass": "COLD",
"NoncurrentDays": 5
"NoncurrentDays": 30
},
"Status": "Enabled"
},
......
#!/bin/bash
for bucket in `mc ls hot --json | jq -r .key | grep -e nuage -e nextcloud | grep -v nuage-liiib-re`; do
for bucket in `mc ls hot --json | jq -r .key | grep -e nuage -e nextcloud -e cloud | grep -v nuage-liiib-re`; do
mc ilm import hot/$bucket < ./policy/ilm-nc.json
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment