Linux Automated Log Cleanup Script
8d old
Free up disk space automatically without babysitting your log files. This bash script scans your specified directories, archives (compresses) old logs, and deletes expired archives based on retention rules you set.Includes a dry-run mode — preview exactly what the script will do before it changes anything, so you can trust it before you schedule it.What it does: Archives log files older than X days (compressed with gzip) Truncates originals safely (won't break apps still writing to the file) Deletes archives older than your retention period Reports total disk space freed after every run Full timestamped logging
Get it → itdecode.gumroad.com