[news.software.b] What to do with evergrowing history and log files

adam@metaware.metaware.com (At these prices, I can't NAME names) (01/10/90)

	Hi, I not too recently installed the B news software here and
it has all gone quite well. However, it seems that my history and log
files grow without end and are never pruned. I have looked and it is
not obvious to me how to get the software to prune these. I hesitate to
simply delete them from time to time. Is there an accepted method?

thank you for your help.
-- 
adam margulies                                    metaware incorporated
                                                  INTERNET: adam@metaware.com
                                                  UUCP:     uunet!metaware!adam
                                                  ATT:      (408)429-META x3016

karl@cheops.cis.ohio-state.edu (Karl Kleinpaste) (01/10/90)

In the B News distribution, take a look at the file misc/trimlib.
It's a shell script to push the log files around.  Embellish to taste,
and run it via cron at, say, 5am every day.

davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) (01/11/90)

In article <169@metaware.metaware.com> adam@metaware.UUCP (At these prices, I can't NAME names) writes:
|                                                           I hesitate to
| simply delete them from time to time. Is there an accepted method?

  Hesitate no more. I run an expire script daily which renames the logs
and removes any old ones. If you don't use them, why save them? Delete
them completely.
-- 
bill davidsen	(davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)

"I'm a left-handed vegitarian, and my hobbies are judo and the number three"
                                     Babs Wilcox, _Don't Get Even, Get Odd_

barton@holston.UUCP (Barton A. Fisk) (01/11/90)

In article <169@metaware.metaware.com>, adam@metaware.metaware.com (At these prices, I can't NAME names) writes:
> 
> 	Hi, I not too recently installed the B news software here and
> it has all gone quite well. However, it seems that my history and log
> files grow without end and are never pruned. I have looked and it is
> not obvious to me how to get the software to prune these. I hesitate to
> simply delete them from time to time. Is there an accepted method?
> 
It is a good tonic to run this regularly:
find SPOOLDIR -size 0 -o -mtime +90 -exec rm -f {} ;
/usr/lib/news/expire -r

This will remove old junk leftover in the spool directory and
then rebuild your history file. First delete the history file
of course.
-- 
Barton A. Fisk          | UUCP: {attctc,texbell}vector!holston!barton
PO Box 1781             | (PSEUDO) DOMAIN: barton@holston.UUCP     
Lake Charles, La. 70602 | ----------------------------------------
318-439-5984            | "Let him who is without sin cast the first stone"-JC