Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
kubernetes
common
Commits
7f6a9c5c
Verified
Commit
7f6a9c5c
authored
1 year ago
by
Hugo Renard
Browse files
Options
Downloads
Patches
Plain Diff
feat: archive version only after 90 days
parent
f4df3221
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
policy/ilm-nc.json
+1
-1
1 addition, 1 deletion
policy/ilm-nc.json
scripts/update_ilm_policy_nextcloud.sh
+1
-1
1 addition, 1 deletion
scripts/update_ilm_policy_nextcloud.sh
with
2 additions
and
2 deletions
policy/ilm-nc.json
+
1
−
1
View file @
7f6a9c5c
...
...
@@ -4,7 +4,7 @@
"ID"
:
"ArchiveVersions"
,
"NoncurrentVersionTransition"
:
{
"StorageClass"
:
"COLD"
,
"NoncurrentDays"
:
5
"NoncurrentDays"
:
30
},
"Status"
:
"Enabled"
},
...
...
This diff is collapsed.
Click to expand it.
scripts/update_ilm_policy_nextcloud.sh
+
1
−
1
View file @
7f6a9c5c
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment