I want to preserve/archive all of my web server logs, and not have any of them be deleted by logrotate. What would a recommended approach be for this? This is a Linux box, running Nginx. Thanks in advance.
(I would prefer to use cronolog, but it appears to not go well with Nginx because of the way Nginx handles logging.)
Best Answer
Do it with logrotate, just tell it what you want...
I don't use nginx, so I used an example I found for the postrotate... If you have a logrotate script already, start with modifying that.
Key parts: