Created
December 19, 2021 17:25
-
-
Save sklinkert/0d783654a0ddeca10c69a52e527aa944 to your computer and use it in GitHub Desktop.
Logrotate for Ghost CMS
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/ghost: | |
/var/www/ghost/content/logs/*.log { | |
weekly | |
rotate 12 | |
compress | |
copytruncate | |
} | |
$ logrotate /etc/logrotate.conf -vf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment