🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by Jason Brown Thu, 23 Jan 1997 00:00
Very old articles.
#14365
Author: Jason Brown
Date: Thu, 23 Jan 1997 00:00
18 lines
1028 bytes
Hi!

A lot of my usenet groups have got articles at least 3 months old dating
back to last year.  How do I get rid of them?  I can only think of two
ways, either to manually delete the articles off the hard disk(s) which I
don`t fancy doing OR to rebuild the history database which according to
the FAQ`s isn`t recommended as could take quite a few hours.

Any ideas?

Thanks in advance,

Jason.



Re: Very old articles.
#14350
Author: Jason Brown
Date: Thu, 23 Jan 1997 00:00
21 lines
1429 bytes
On 23 Jan 1997, Jonathan I. Kamens wrote:

> 
> It would help if you mentioned whether you're running C News, INN, or
> something else.
Oops! It certainly would help..luckily I`m running INN v1.4unoff and
seriously thinking about upgrading to 1.5.1 as it has some nice features
like being to post while the server is throttling apparently.

> to it.  It only actually throttles the server right at the end when it
> is adding the articles to the history file, not when it is searching
> the spool.  See the makehistory(8) man page, or news-recovery(8) if

Aha I didn`t realise that, I`ll start it early tommorow morning then!

Thanks!



Re: Very old articles.
#14375
Author: Jonathan I. Kamens
Date: Thu, 23 Jan 1997 00:00
29 lines
2015 bytes
In article <Pine.LNX.3.93.970123165601.27532A-100000@jason.interalpha.net>, Jason Brown <jbrown@interalpha.co.uk> writes:
|> A lot of my usenet groups have got articles at least 3 months old dating
|> back to last year.  How do I get rid of them?  I can only think of two
|> ways, either to manually delete the articles off the hard disk(s) which I
|> don`t fancy doing OR to rebuild the history database which according to
|> the FAQ`s isn`t recommended as could take quite a few hours.

It would help if you mentioned whether you're running C News, INN, or
something else.

With INN, there's nothing wrong with running "makehistory -bu" to
search the spool and add all articles that aren't in the history file
to it.  It only actually throttles the server right at the end when it
is adding the articles to the history file, not when it is searching
the spool.  See the makehistory(8) man page, or news-recovery(8) if
you're running an older version of INN that doesn't have a
makehistory(8) page.

If you're not running INN, then upgrade to INN :-), or just do a "find
<spool-dir> -type f -mtime +<number of days old past which you want to
delete> -print | xargs rm" to delete the old articles.  Nothing wrong
with that -- the News system handles missing articles by simply
assuming they've been cancelled, which in a way they have.

-- 
Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com

Re: Very old articles.
#14402
Author: Daryl E. Kottek
Date: Fri, 24 Jan 1997 00:00
38 lines
1806 bytes

In a previous article, jbrown@interalpha.co.uk (Jason Brown) says:

.Hi!
..
.A lot of my usenet groups have got articles at least 3 months old dating
.back to last year.  How do I get rid of them?  I can only think of two
.ways, either to manually delete the articles off the hard disk(s) which I
.don`t fancy doing OR to rebuild the history database which according to
.the FAQ`s isn`t recommended as could take quite a few hours.
..
.Any ideas?
..
.Thanks in advance,
..
.Jason.

Well, don't know if this is the recommended approach or not, but I think
it will work.

ASSUMPTION:  You don't want ANY articles that are older than 3 months old.
touch 1024000096 /tmp/old
	This creates a file called /tmp/old with a date of 10/24/96 00:00

cd /var/spool/news
find . -type f -name "[0-9]*" ! -newer /tmp/old -print -exec rm {} \;
	This finds all files that are plain files in which the name of the
	file is composed of only digits and is older than the date of the
	file called /tmp/old (you set that up to be 10/24/96).  With the
	files that match this criteria, it will print their names, and
	also remove them.

-Daryl
	
-- 

Re: Very old articles.
#14461
Author: Jonathan I. Kamens
Date: Mon, 27 Jan 1997 00:00
41 lines
2557 bytes
In article <5casfi$9gn@ednet2.orednet.org>, dkotte2@orednet.org (Daryl E. Kottek) writes:
|> ASSUMPTION:  You don't want ANY articles that are older than 3 months old.
|> touch 1024000096 /tmp/old
|> 	This creates a file called /tmp/old with a date of 10/24/96 00:00
|> 
|> cd /var/spool/news
|> find . -type f -name "[0-9]*" ! -newer /tmp/old -print -exec rm {} \;
|> 	This finds all files that are plain files in which the name of the
|> 	file is composed of only digits and is older than the date of the
|> 	file called /tmp/old (you set that up to be 10/24/96).  With the
|> 	files that match this criteria, it will print their names, and
|> 	also remove them.

First of all, you are assuming that this individual has a version of
touch which allows the file modification time to be specified as you
have indicated.  That is certainly not true for all UNIX variants. 
E.g., it's not true for Linux (assuming that GNU touch is being used),
which requires the "-t" flag to specified before the timestamp, or for
SunOS 4.x, which doesn't allow the timestamp to be specified to touch
at all.

Second, there's absolutely no reason to use a touched file as you've
suggested to tell find which files to delete.  Using "-mtime +90" is
sufficient.

Third, the find file-name pattern "[0-9]*" will not, as you have
claimed, find files "in which the name of the file is composed of only
digits."  It will find files whose names *start with a digit*.  The
difference in this case is minimal, but if you're going to give an
example showing people how to use find, you ought to get it right.

Fourth, having find invoke rm individually for each file being removed
is inefficient, and this will make a difference if there are lots of
old files.  Using "find . -type f -mtime +90 -print | xargs rm -f" is
much more efficient.

-- 
Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com

Re: Very old articles.
#14462
Author: Stefan Monnier
Date: Mon, 27 Jan 1997 00:00
10 lines
931 bytes
jik@cam.ov.com (Jonathan I. Kamens) writes:
> SunOS 4.x, which doesn't allow the timestamp to be specified to touch at all.

I seem to remember that the /usr/5bin/touch could be used in such cases.


        Stefan "not saure"

Re: Very old articles.
#14610
Author: Cracker Buster
Date: Fri, 31 Jan 1997 00:00
19 lines
1339 bytes
On 31 Jan 1997, Marc Roger wrote:

> >old files.  Using "find . -type f -mtime +90 -print | xargs rm -f" is
> 
> findmissing.pl | sort | fastrm -s /spool
> will remove any article that is in the spool but not in the
> history file, efficiently.

    Well, almost any.  It'll fail the case of groups like alt.2600 or
local class groups or others with all-numeric name segments, so you'll
have to tweak it (or use find) to clear out crud from alt.2600.codez and
the like. 


http://www.fileita.it/webitalia/netscum/bouwsmb0.html


Re: Very old articles.
#14612
Author: Raza Rizvi
Date: Fri, 31 Jan 1997 00:00
25 lines
1567 bytes
In article <slrn5f3li9.foi.marc@ain.belnet.be>, Marc.Roger@belnet.be wrote:

> On 27 Jan 1997 14:18:31 GMT, in news:<5cidfn$q00$1@pad-thai.cam.ov.com>,
> Jonathan I. Kamens <jik@cam.ov.com> wrote in news.software.nntp:
> >old files.  Using "find . -type f -mtime +90 -print | xargs rm -f" is
> 
> findmissing.pl | sort | fastrm -s /spool
> will remove any article that is in the spool but not in the
> history file, efficiently.

But you need to make sure that your history file has entries for all the
articles that may be in groups with very long expiry dates. Otherwise if
you keep history entries for 25 days and expire a group after 60 days,
running the above program will delete the articles in that group over 25
days old.

Raza

-- 
Raza Rizvi (raza.rizvi@red.net)
REDNET Ltd, Lancaster Road, High Wycombe, ENGLAND, HP12 3YZ.
+44 (0)1494 513333

Re: Very old articles.
#14634
Author: Matt Dillon
Date: Fri, 31 Jan 1997 00:00
42 lines
2837 bytes
:In article <5cucal$pr4@news0-alterdial.uu.net>,
:Jerry Aguirre <jerry@rigel.whowhere.com> wrote:
:>In article <raza.rizvi-3101971829380001@rednet112.rednet.co.uk>,
:>>But you need to make sure that your history file has entries for all the
:>>articles that may be in groups with very long expiry dates. Otherwise if
:>>you keep history entries for 25 days and expire a group after 60 days,
:>>running the above program will delete the articles in that group over 25
:>>days old.
:>
:>The /remember/ field of expire.ctl sets the LOWER limit on how long history
:>entries are retained.  If you have remember set to 25 and expire a group at 60
:>then the history entries for that group will stay around for 61 days.
:>
:>Think about it this way, if the history entries were removed after 25 days how
:>would expire "know" it still had anything to remove when 60 days came around?
:>Expire only knows to get rid of what is listed in the history file.  And it only
:>knows when to remove it based on the date in the history entry.
:>
:>The normal condition where /remember/ has effect is when the expire value is
:>lower.  If /remember/ is set to 25 days but you expire a group after 7 days
:>then the history entry, just the message ID and arrival date, will be kept for
:>25 days.  This keeps  you from getting duplicate copies on day 8 of stuff you
:>just expired the day before.
:>
:>Ideally the /remember/ value should be greater than or equal to the cutoff date.
:>This prevents getting duplicates as either they are still in the history or they
:>are rejected as too old.

    You do not have to make /remember/ any higher then 16 days, because 
    INND automatically rejects incoming articles over 14 days old (relative
    to the date of posting gleamed from the Date: field).

    /remember has no effect on the history file other then to keep message-id's
    around for the specified minimum.  It is a lower bound, not an upper
    bound, so you do not have to worry about it *deleting* anything when your
    article expires for some groups are > 16 days.

					-Matt


Re: Very old articles.
#14640
Author: Marc Roger
Date: Fri, 31 Jan 1997 00:00
13 lines
1076 bytes
On 27 Jan 1997 14:18:31 GMT, in news:<5cidfn$q00$1@pad-thai.cam.ov.com>,
Jonathan I. Kamens <jik@cam.ov.com> wrote in news.software.nntp:
>old files.  Using "find . -type f -mtime +90 -print | xargs rm -f" is

findmissing.pl | sort | fastrm -s /spool
will remove any article that is in the spool but not in the
history file, efficiently.

-- 
Marc Roger

Re: Very old articles.
#14639
Author: Jerry Aguirre
Date: Sat, 01 Feb 1997 00:00
28 lines
2178 bytes
In article <raza.rizvi-3101971829380001@rednet112.rednet.co.uk>,
>But you need to make sure that your history file has entries for all the
>articles that may be in groups with very long expiry dates. Otherwise if
>you keep history entries for 25 days and expire a group after 60 days,
>running the above program will delete the articles in that group over 25
>days old.

The /remember/ field of expire.ctl sets the LOWER limit on how long history
entries are retained.  If you have remember set to 25 and expire a group at 60
then the history entries for that group will stay around for 61 days.

Think about it this way, if the history entries were removed after 25 days how
would expire "know" it still had anything to remove when 60 days came around?
Expire only knows to get rid of what is listed in the history file.  And it only
knows when to remove it based on the date in the history entry.

The normal condition where /remember/ has effect is when the expire value is
lower.  If /remember/ is set to 25 days but you expire a group after 7 days
then the history entry, just the message ID and arrival date, will be kept for
25 days.  This keeps  you from getting duplicate copies on day 8 of stuff you
just expired the day before.

Ideally the /remember/ value should be greater than or equal to the cutoff date.
This prevents getting duplicates as either they are still in the history or they
are rejected as too old.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads