diff options
Diffstat (limited to 'assets/outbox/log-cleanup-cron-setup.txt')
| -rw-r--r-- | assets/outbox/log-cleanup-cron-setup.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/assets/outbox/log-cleanup-cron-setup.txt b/assets/outbox/log-cleanup-cron-setup.txt new file mode 100644 index 0000000..7549bc2 --- /dev/null +++ b/assets/outbox/log-cleanup-cron-setup.txt @@ -0,0 +1,22 @@ +Log Cleanup Cron Job +==================== + +Added: 2026-02-26 + +What: Daily cleanup of session log files in ~/.local/var/log + +Problem: Hyprland, waybar, dunst, hypridle, and gammastep each create a new +timestamped log file per session (e.g., dunst-2026-02-26-050000.log). Without +cleanup these accumulate indefinitely (~270 files / 3MB as of Feb 2026). + +Solution: A cron job runs daily at noon, deleting .log files older than 7 days. + +Files added to archsetup: +- dotfiles/common/.local/bin/cron/log-cleanup (the script) + +Installation on fresh system: +1. Symlink is created by stow/dotfile install (same as checkup, crontog) +2. Add to crontab: + crontab -e + # Add this line: + 0 12 * * * $HOME/.local/bin/cron/log-cleanup |
