Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Last active October 17, 2023 15:22
Show Gist options
  • Save Max95Cohen/b657adf7b996269ce692400eb5738c01 to your computer and use it in GitHub Desktop.
Save Max95Cohen/b657adf7b996269ce692400eb5738c01 to your computer and use it in GitHub Desktop.
logrotate.d mysql script
# /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