Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3546

Raspberry Pi OS • Re: deleting files in /var/log/journal/b9bf88f1420b453cac1e0c8c00401061

$
0
0
There are some journalctl command parameters to vacuum that journal:

Code:

     --vacuum-size=BYTES     Reduce disk usage below specified size     --vacuum-files=INT      Leave only the specified number of journal files     --vacuum-time=TIME      Remove journal files older than specified time
I've coded

Code:

# m h  dom mon dow   command0 0 * * * journalctl --vacuum-time=1d
in root's crontab. Everyday that trims everything older than 24 hours from my journals.

Statistics: Posted by DougieLawson — Mon Feb 17, 2025 6:30 pm



Viewing all articles
Browse latest Browse all 3546

Trending Articles