You've already forked journal-log-ubuntu
48 lines
1.1 KiB
Markdown
48 lines
1.1 KiB
Markdown
# Clear Journal Log for Ubuntu 24.04 Server
|
|
[](#)
|
|
[](#)
|
|
[](#)
|
|
[](./LICENSE)
|
|
|
|
Automated Bash installer script for configuring **journal log cleanup** on Ubuntu 24.04 Server.
|
|
|
|
This script automatically cleans up **journalctl** once a week, retaining logs for **3 days**.
|
|
|
|
### Download the Script
|
|
Clone the repository from your Git server:
|
|
|
|
```
|
|
git clone https://git.x-files.dk/server/journal-log-ubuntu.git
|
|
```
|
|
|
|
```
|
|
cd journal-log-ubuntu
|
|
```
|
|
|
|
### Usage
|
|
Run the script using:
|
|
|
|
```
|
|
cd journal-log-ubuntu
|
|
sudo ./journal-log-ubuntu
|
|
```
|
|
|
|
### Notes
|
|
A crontab entry will be added to perform cleanup of **journalctl** logs. This job runs every **Sunday at 02:00**.
|
|
|
|
### Post-install
|
|
Nothing to do.
|
|
|
|
---
|
|
|
|
### More Information
|
|
|
|
More guides and documentation can be found on [wiki.x-files.dk](https://wiki.x-files.dk)
|
|
|
|
---
|
|
|
|
### License
|
|
Licensed under the [MIT License](./LICENSE).
|
|
|
|
---
|