Skip to content
Snippets Groups Projects
Commit 2f4a27e5 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Adds procedure about kubedb snapshots.

parent da6c175d
No related branches found
No related tags found
No related merge requests found
Clean snapshots older than 2 months:
```
kubectl get snapshots.kubedb.com -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{"\n"}}{{end}}' | awk '$2 <= "'$(date -d '2 month ago' -Ins --utc | sed 's/+0000/Z/')'" { print $1 }' | xargs --no-run-if-empty kubectl delete snapshots.kubedb.com
```
\ No newline at end of file
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