Skip to content

Instantly share code, notes, and snippets.

@sklinkert
Created December 19, 2021 17:25
Show Gist options
  • Save sklinkert/0d783654a0ddeca10c69a52e527aa944 to your computer and use it in GitHub Desktop.
Save sklinkert/0d783654a0ddeca10c69a52e527aa944 to your computer and use it in GitHub Desktop.
Logrotate for Ghost CMS
$ /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