logrotate tutorial request
-
can we get a logrotate tutorial? i would like it to be able to rotate all logs in /home/public_html/{domain}/log
Posted 1 year ago # -
yes OSB .. damn, I really must work that into the tuts and scripts ..
Posted 1 year ago # -
after reading this I realized after just two weeks my access log is already 6 GB.
So this will be a very much important part of my vps setup too.
Keep us posted guv.
Jose R. Lopez
Posted 1 year ago # -
meantime, jose:-
sudo rm /path/to/log
the log will be recreated automatically
.. i know this isn't ideal.
Posted 1 year ago # -
Yeah, I've been manually moving the log file to a dated file name and then reload nginx so it would write a new file. So far its been working well. Ideally I would set this up automatically in the future.
Jose R. Lopez
Posted 1 year ago # -
aye .. I need to add it to the bible and stacks .. yes I know!
Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
