Maintenance · about 1 min · 3 steps
Rotate log files now
Starts fresh log files right away and compresses or deletes old ones, following the server's log rotation settings.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported
- Alpine: supported
What it changes on your server
- Installs logrotate if it's missing.
- Rotates every log logrotate manages now (logrotate -f): old logs are compressed, and the oldest deleted as its settings say.
What Shellbay asks you
Nothing. This workflow needs no details from you.
Steps
- Make sure logrotate is installed
- Rotate the logs
- Check logrotate ran
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- Logs were rotated. logrotate keeps doing this on its normal schedule.