mirror of
https://github.com/rssnyder/minio-lifecycle
synced 2026-06-30 16:50:27 -05:00
No description
- Go 97.5%
- Makefile 2.5%
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| Makefile | ||
| README.md | ||
minio-lifecycle
minio-lifecycle
Lifecycle your minio bucket for objects older than X days.
Build
Install go.
make build
Usage
./minio-lifecycle -server http://<minio server ip>:<port> -key "<access key>" -secret '<access secret>' -bucket '<target bucket>' -days <max age of object>
Example (deleting objects older than a week):
./minio-lifecycle -server http://10.0.0.10:9768 -key "xxxxxxxxxxxxxxxx" -secret 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -bucket 'dump' -days 7