Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vpro/garbage-cleaner

This project is used as a 'sidecar' in all statefull sets
https://github.com/vpro/garbage-cleaner

Last synced: 28 days ago
JSON representation

This project is used as a 'sidecar' in all statefull sets

Awesome Lists containing this project

README

        

= Garbage cleaner docker image

This project is used as a 'side car' in all statefull sets.

Purges old files from a list of folders. Deletes all files not accessed for a specific time period.

(Used timing in minutes)

Usage:

[source]
----
docker run \
--env "PURGE_FOLDERS=cache,/assets" \
--env "LOG_FOLDERS="/data/logs" \
--env "FILE_AGE=2" \
--env "CRON_MOVELOGS=*/5 * * * *" \
--env "CRON_PURGE=0 3 * * *" \
garbage-cleaner
----

Also, it will clean up logs in /data/logs