Go Back   AnandTech Forums > Software > *nix Software

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Home and Garden
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 04-04-2008, 09:35 AM   #1
jhbball
Platinum Member
 
jhbball's Avatar
 
Join Date: Mar 2002
Posts: 2,784
Default Nub help: Backing up & Rotating Apache Log files: linux server

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
__________________
ZZzz.
jhbball is offline   Reply With Quote
Old 04-04-2008, 12:14 PM   #2
Nothinman
Elite Member
 
Nothinman's Avatar
 
Join Date: Sep 2001
Posts: 30,672
Default Nub help: Backing up & Rotating Apache Log files: linux server

Most Linux distributions already have a facility called logrotate. If you change the paths where Apache logs you'll have to fix them in logrotate but that's about it.
__________________
http://www.debian.org
Nothinman is offline   Reply With Quote
Old 04-04-2008, 01:10 PM   #3
Brazen
Diamond Member
 
Brazen's Avatar
 
Join Date: Jul 2000
Posts: 4,260
Default Nub help: Backing up & Rotating Apache Log files: linux server

Quote:
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 youremail@server.com" 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.
__________________
How about a nice tall frosty mug of SHUT THE H@LL UP?

Hotdog Flavored Rig
Brazen is offline   Reply With Quote
Old 04-04-2008, 11:23 PM   #4
Khyron320
Senior Member
 
Join Date: Aug 2002
Location: homewood, IL
Posts: 306
Default Nub help: Backing up & Rotating Apache Log files: linux server

Install webmin and use its management tool for syslogs. Very easy and very quick when you are asked to change a setting. You wont have to fumble around much looking for an answer.
__________________
Karchive2: Fedora 13 32-bit 1gb ram E2160 4tb ZFS pool
Khyrokube: Mint 8 32-bit 4gb ram E6300
Khyrobox: Windows Vista 32-bit 4gb ram Q6600
Kvirtualbox: Ubuntu 10.04 LTS 64-bit 4gb ram
Khyron320 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:17 PM.


Powered by vBulletin® Version 3.8.8 Alpha 1
Copyright ©2000 - 2015, vBulletin Solutions, Inc.