26 lines
526 B
Markdown
26 lines
526 B
Markdown
## Clear journal log
|
|
|
|
### 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
|
|
sudo ./clear-journal-log
|
|
|
|
### Note
|
|
A crontab entry performing cleanup of journalctl will be added. This this job runs every Sunday at 02:00
|
|
|
|
### Postinstall
|
|
Nothing to do.
|
|
|
|
### More guides
|
|
More guides can be found on [\[wiki.x-files.dk\]](https://wiki.x-files.dk)
|
|
|
|
### Last tested
|
|
November 8th 2024 on Ubuntu 24.04.
|