No description
  • Go 97.5%
  • Makefile 2.5%
Find a file
2020-07-09 14:16:36 -05:00
.gitignore Initial commit 2020-07-09 14:10:35 -05:00
go.mod v0.0.1 2020-07-09 14:16:36 -05:00
go.sum v0.0.1 2020-07-09 14:16:36 -05:00
main.go v0.0.1 2020-07-09 14:16:36 -05:00
Makefile v0.0.1 2020-07-09 14:16:36 -05:00
README.md v0.0.1 2020-07-09 14:16:36 -05:00

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