View previous topic :: View next topic |
Author |
Message |
greenbaarron n00b
Joined: 06 Dec 2004 Posts: 4
|
Posted: Tue Dec 07, 2004 4:33 am Post subject: Tip, when /var gets BIG |
|
|
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 |
|
|
zsoltika l33t
Joined: 13 Nov 2003 Posts: 634 Location: Budapest, Hungary
|
Posted: Tue Dec 07, 2004 8:30 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Dec 27, 2004 7:34 am Post subject: |
|
|
Added info/reference to FAQ Forum entry. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|