Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
magento logrotate
# /etc/logrotate.d/magento
"/path/to/site/var/log/*.log"
"/path/to/another-site/var/log/*.log" {
compress
copytruncate
daily
missingok
notifempty
olddir archive
rotate 40
create 660 www-data www-data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment