clear-journal-log/README.md

28 lines
639 B
Markdown
Raw Permalink Normal View History

2024-04-29 08:59:23 +02:00
## Clear journal log
2024-04-27 23:50:49 +02:00
2024-04-29 08:59:23 +02:00
### Prerequisites
Ubuntu 20.04 or higher.
### Download the script
```
git clone https://git.x-files.dk/ubuntu-server/clear-journal-log.git
```
### Usage
cd clear-journal-log
chmod +x clear-journal-log
sudo cp clear-journal-log /usr/local/bin
### Optional create crontab entry
2024-04-29 09:38:20 +02:00
echo "0 2 * * 7 root /usr/local/bin/clear-journal-log >/dev/null 2>&1" | sudo tee /etc/cron.d/clear-journal-log
2024-04-29 08:59:23 +02:00
systemctl restart cron
### Postinstall
Nothing to do.
### More guides
More guides can be found on [\[wiki.x-files.dk\]](https://wiki.x-files.dk)
### Last tested
January 12th 2024 on Ubuntu 22.04.