🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74222

Re: Renaming a newsgroup

#74222
From: John F. Morse
Date: Mon, 11 Sep 2006 11:12
141 lines
6211 bytes
Jeffrey M. Vinocur wrote:

>In article <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>I'm curious though: How will the script handle the crossposted group 
>>names in groups other than the one where it is executing? Will I need to 
>>run it five times in each group's directory, with the new group names? 
>>Or can I run it in the new hierarchy directory "xanadu" containing the 
>>five directories, with a wildcard? Wouldn't I still need to run it five 
>>times since there are five distinct group names?
>>    
>>
>
>You need to do one run per old-name/new-name pair, but you can
>include all the articles regardless of location (so you need five
>runs, not twenty-five).  It would be fine to run the script five
>times in the top-level directory after relocating the files as
>you suggest (simply do `renamer.pl x y */*` to get all the files
>in all the subdirectories).
>
>Alternatively, you can run it in the existing directories, a
>little more verbosely, by doing something like `renamer.pl x y
>brisbee/* soapbox/* petchat/* ...` to list out all the articles
>that way.  No matter as far as the script is concerned.
>  
>


Good morning, Jeff.

Sounds pretty simple, especially the first suggestion. Just run it 
inside the xanadu directory, once for each x y pair of the name of the 
oldgroup and the newgroup such as:

perl renamer.pl brisbee xanadu.brisbee */*
perl renamer.pl computers xanadu.computers */*
perl renamer.pl petchat xanadu.petchat */*
perl renamer.pl raucouscaucus xanadu.raucouscaucus */*
perl renamer.pl soapbox xanadu.soapbox */*
perl renamer.pl local.announce xanadu.announce */*
perl renamer.pl local.info xanadu.info */*
perl renamer.pl local.test xanadu.test */*

These can probably be copied right into BASH.

Thanks.


>>What detrimental effect would result if a crossposted article was not 
>>correctly renamed? Would it be a silent error while serving the article 
>>to the reader? IOW, will it harm the server's operation, or simply log 
>>an error, which actually could make the identification of the article 
>>easier so it can be manually edited. I can see myself editing several 
>>years into the future as errors trickle in from failures. ;-)
>>    
>>
>
>I suspect the article would be correctly visible in whichever of
>the groups got renamed, and simply missing from those that
>didn't.  It shouldn't hurt the server, though.
>  
>


That eliminates a lot of worry.


>Incidentally, the sizes you see reported there are not very
>meaningful -- they're just the sizes of the index structures
>required to keep track of each directory.  You probably want to
>do `du -sck *` or `du -sch *` instead.
>  
>


Actually, I was fishing for a command to get a listing of the "count" of 
individual files. I found nothing for ls, dir, or vdir. I can get a file 
count using an X file manager, but I can't do that remotely, or very 
well from the slow 233 MHz news2 server. GUI file managers use some 
command which I should be able to use from BASH. I find nothing in 
apropos to use for summing the file count.

Just for your info, here's what I came up with:

john@optima7:/var/spool/news/articles$ du -sck *
26288   alt
357845  brisbee
219     christnet
143533  comp
26409   computers
33      control
9685    humanities
62      local
5815    misc
283207  news
15084   petchat
3633    raucouscaucus
50431   rec
2       sci
27969   soapbox
5       soc
2286    talk
1       test
952503  total


>>Perhaps it is no longer a big issue, unless INN balks on it when
>>running the nightly expire routines or running makehistory?
>>    
>>
>
>I'm not sure what you're asking here.
>  
>


I was just wondering what makehistory (or whatever reads every article's 
header) might do when it encountered articles with invalid Xref groups. 
But after some additional caffeine, I presume it would ignore those 
groups, as it does anyway when an article was crossposted to groups on a 
peer, and are not in the active file on the local server.

I'm going to try all of this on the old news2 server and see how it 
flys. Then tomorrow (?) I can do it on the news7 server. I'm backing up 
the eight groups into the empty archive folder -- just in case I goof 
and I need them later.

It might be smarter to simply copy the eight directories into the xanadu 
directory, and run the script on those directories. That way I'd still 
have the old structure available for use until I'm sure the new group 
names are working correctly. Then I could use ctlinnd rmgroup the old 
groups, and then rm their directories.

Can you tell I'm more of a planner than an attacker? ;-)

Thanks again.

-- 
John
Technical Details
Message-ID: <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <RzZMg.99175$5i3.82988@bgtnsc04-news.ops.worldnet.att.net> <ee23ii$6qj$1@puck.litech.org> <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> <ee3bcp$sqa$1@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net>
Subject: Re: Renaming a newsgroup
Date: Mon, 11 Sep 2006 11:12:46 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <RzZMg.99175$5i3.82988@bgtnsc04-news.ops.worldnet.att.net> <ee23ii$6qj$1@puck.litech.org> <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> <ee3bcp$sqa$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Debian Thunderbird 1.0.2 (X11/20060423)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <ee3bcp$sqa$1@puck.litech.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 141
NNTP-Posting-Host: 5a803bb90e701306f1fa52292461fcb7
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1157973166
NNTP-Posting-Date: Mon, 11 Sep 2006 11:12:46 GMT