Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tip, when /var gets BIG
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
greenbaarron
n00b
n00b


Joined: 06 Dec 2004
Posts: 4

PostPosted: Tue Dec 07, 2004 4:33 am    Post subject: Tip, when /var gets BIG Reply with quote

I just deleted a 2.5 GB log file:
/var/log/messages
was 2.5 GB, I couldn't believe this.... but then I thought about it, still gotta find a better way of doing it cause it only took 9 months to build up to this size (and this is text too). Guess an always on personal file server can log a lotta shit.

-GB
Back to top
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Tue Dec 07, 2004 8:30 am    Post subject: Reply with quote

Yes there are better solutions, one of them:
Code:
emerge logrotate
man logrotate

Learn it. Configure it. Use it. (It's capable of compressing and archiving or deleting log files, that get too big, old, and so on.
--
Zsoltika
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Dec 27, 2004 7:34 am    Post subject: Reply with quote

Added info/reference to FAQ Forum entry.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum