🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1648

Re: Renumber newsgroups by post date

#1648
From: Eli
Date: Tue, 25 Apr 2023 09:34
33 lines
2096 bytes
On 23 Apr 2023 at 18:08:22 CEST, "Frank" <franky@xxx.yyy> wrote:

> Eli:
> 
>> How can I best renumber the article numbers of all newsgroups, sorted by post
>> date.
> 
> Why?! Renumbering articles is generally a bad idea. Newsreaders rely on
> them to tell what's new and what to mark as read.
> 
> If a server renumbers its articles, its readers would need to throw out
> their newsrc and show everything as unread.

It is a new server and has no readers yet, so that isn't a problem.

>> Can someone help me with this?
> 
> - stop accepting articles on the existing server
> - make a sorted list of storage tokens (you'll probably need to write a
> script for this. loop over the history and make a list of tokens and their
> posting date, then sort it)
> - set up a new empty server
> - use the sorted list to feed articles into the new server
> - swap servers
> - start accepting articles again

With 300,000,000 articles, the server is quite large and transferring these
articles to another server over a single connection takes forever.

Sorting the history file by post date is no problem, but is it possible to
rebuild the overview databases based on this sorted history file?

Perhaps this is more of a question for Julien to answer?
Technical Details
Message-ID: <l8N1M.4640532$miq3.438385@fx02.ams4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <20230423160822.Aq0OKbfG2jj0@sewer.dizum.com>

Show Full Headers
Complete Article Headers
Message-ID: <l8N1M.4640532$miq3.438385@fx02.ams4>
Subject: Re: Renumber newsgroups by post date
Date: Tue, 25 Apr 2023 09:34:09 GMT
From: Eli <eliistheman@gmail.com>
References: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <20230423160822.Aq0OKbfG2jj0@sewer.dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.admin.peering
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
User-Agent: Usenapp for MacOS
X-Usenapp: v1.26.6/l - Full License
Lines: 33
X-Complaints-To: abuse@eweka.nl
Nntp-Posting-Date: Tue, 25 Apr 2023 09:34:09 UTC
Organization: Eweka Internet Services