https://github.com/triole/vblr
a very basic log rotater
https://github.com/triole/vblr
logrotate shell-script
Last synced: 9 months ago
JSON representation
a very basic log rotater
- Host: GitHub
- URL: https://github.com/triole/vblr
- Owner: triole
- Created: 2023-03-28T08:14:17.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-28T17:21:20.000Z (over 2 years ago)
- Last Synced: 2025-09-05T19:28:51.502Z (9 months ago)
- Topics: logrotate, shell-script
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Very Basic Log Rotater
- [Synopsis](#synopsis)
- [Why?](#why)
- [Disclaimer](#disclaimer)
- [Help](#help)
## Synopsis
This is a very basic log rotater written in a single shell script.
## Why?
Because it does the job.
## Disclaimer
Warning. Use this software at your own risk. I may not be hold responsible for any data loss, starving your kittens or losing the bling bling powerpoint presentation you made to impress human resources with the efficiency of your employee's performance.
## Help
```go mdox-exec="./rotate.sh -h"
vblr help
args
-h/--help display help
-d/--debug just print don't do
-[0-9]+ to indicate how many old zip logs to keep, default is 0 and keeps all
usage
rotate.sh /var/log
rotate.sh /var/log -5
rotate.sh /var/log -9 -d
```