TMPREAPER.CONF(5)

πŸ’– TMPREAPER.CONF(5) πŸ’–

okay bestie, welcome to the tmpreaper.conf page β€” it's from the File Formats Manual, and it's literally the lil settings file that tells the daily tmpreaper run how to behave. it's short, it's sweet, it's giving "one page, zero filler" energy. let's get into it 🫢


✨ NAME ✨

tmpreaper.conf β€” defines parameters for daily run of tmpreaper


🌸 DESCRIPTION 🌸

so here's the tea: tmpreaper gets run daily via the /etc/cron.daily/tmpreaper script. and the way it acts? totally tunable through the /etc/tmpreaper.conf file. this file can hold settings entries that override the defaults baked into the cron.daily script itself. no cap.

and these are the settings, one by one, no skipping, we're doing all of them πŸ’…

πŸŽ€ TMPREAPER_TIME

the max. age of files before they're removed. default:

TMPREAPER_TIME=7d

πŸŽ€ TMPREAPER_PROTECT_EXTRA

extra patterns that you may want to protect. example:

TMPREAPER_PROTECT_EXTRA='/tmp/isdnctrl* /tmp/important*'
don't forget to enclose the patterns in quotes, like above. fr fr, the quotes are not optional πŸ™ˆ

πŸŽ€ TMPREAPER_DIRS

the directories to clean up.

NEVER supply / here! That will wipe most of your system! 😭 like actually, do NOT do that. that's not a vibe, that's a tragedy.

example:

TMPREAPER_DIRS='/tmp/. /var/tmp/.'

again, don't forget to enclose the patterns in quotes, like above. same rule, same energy ✨

πŸŽ€ TMPREAPER_DELAY

defines the maximum (randomized) delay before starting processing. this is passed as the --delay parameter.

πŸŽ€ TMPREAPER_ADDITIONALOPTIONS

defines any additional parameters you want to pass to the tmpreaper program, e.g. --all


πŸ‘€ SEE ALSO πŸ‘€


πŸ‘‘ AUTHOR πŸ‘‘

Paul Slootman <paul@debian.org>


and that's the whole page, bestie β€” you ate it πŸ’… this one's from the 4th Berkeley Distribution, dated Thu Sep 17 2009, and it lives in the File Formats Manual section. go forth and configure responsibly πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from