Shell
You're viewing a free preview. Sign in free to read every script.
Why this exists Logs fill disks, and full disks take services down. A cleanup script is simple, but it deletes files, so it earns its place only if it is careful: a dry run first, refusal to touch system directories,…
Log Cleanup with find: Retention, Compression and Safety Checks
A cleanup script that compresses logs after a few days and deletes them after a retention period, with a dry-run default, a report of space reclaimed, and guards that refuse to run on dangerous paths.
Sign in free to read this script, along with the rest of the library.
Sign in free