Can anyone help with a daily periodic script to delete any directories in /tmp which are over six months old?
There may well be something similar available... should this be OK (from /etc/periodic.conf.local)?
There may well be something similar available... should this be OK (from /etc/periodic.conf.local)?
Code:
# 110.clean-tmps
#daily_clean_tmps_enable="NO"<-><------><------><------># Delete stuff daily
daily_clean_tmps_enable="YES"<-><------><------><------># Delete stuff daily
daily_clean_tmps_dirs="/tmp"<--><------><------><------># Delete under here
daily_clean_tmps_days="183"<---><------><------><------># If not accessed for
daily_clean_tmps_ignore=".X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix"
daily_clean_tmps_ignore="$daily_clean_tmps_ignore quota.user quota.group .snap"
daily_clean_tmps_ignore="$daily_clean_tmps_ignore .sujournal"
<------><------><------><------><------><------><------># Don't delete these
daily_clean_tmps_verbose="YES"<><------><------><------># Mention files deleted