Last active
October 17, 2023 15:22
-
-
Save Max95Cohen/b657adf7b996269ce692400eb5738c01 to your computer and use it in GitHub Desktop.
logrotate.d mysql script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/logrotate.d/mysql_general | |
/var/lib/mysql/platonus.log{ | |
compress | |
dateext | |
maxsize 300M | |
copytruncate | |
maxage 365 | |
dateformat -%Y%m%d%s | |
hourly | |
rotate 96 | |
notifempty | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment