Originally posted by: jhbball
So, I'd like to set up a cron job, that rotates and backs up Apache log files on our web server, but I'm not sure how to set this up. Does anyone have quick instructions as to how to set this up?
Moved to appropriate forum.
Markbnj - Programming Mod
If you installed Apache from a package manager, then logrotate should already be set up. You can open "/etc/logrotate.conf" and add the line: "mail firstname.lastname@example.org
" to have logrotate email the logs to you. You can also configure logrotate to copy the logs files to a specified location.
Just google "logrotate" or "man logrotate" for more information.