s3-object-expirer
Expire (delete) S3 objects older than a given age.
Usage
- Copy
./config/example.s3cfg
to./config/.s3cfg
and enter the required details. Feel free to add any additionals3cmd
options you desire. - Create
./config/bucket
with the name of the bucket to purge. - Create
./config/expire_age_days
with a number that specifies the maximum age of items in the bucket. Anything created more than that many days ago will be purged. - Start the monitor:
docker-compose up -d