Last active
September 17, 2016 08:46
-
-
Save davidalexander/d6df48515313f9c0cf12 to your computer and use it in GitHub Desktop.
magento logrotate
This file contains hidden or 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/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