🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1654

Re: Renumber newsgroups by post date

#1654
From: Eli
Date: Sun, 30 Apr 2023 18:22
54 lines
3369 bytes
On 29 Apr 2023 at 22:12:47 CEST, "Matija Nalis" <mnalis-news@voyager.hr>
wrote:

> On Fri, 28 Apr 2023 18:32:45 GMT, Eli <eliistheman@gmail.com> wrote:
>> On 28 Apr 2023 at 15:11:26 CEST, "Matija Nalis" <mnalis-news@voyager.hr>
>>> So if you do not want to involve another server; to do such renumber,
>>> one would need to (hopefully I'm not forgetting important step):
>> 
>> Thank you very much for the detailed explanation. However, I wonder if
>> manually renumbering the article files works, since crossposts are stored as
>> symbolic links. But it might be worth a try.
> 
> I'm not sure, but I think crossposts may have been stored as hardlinks instead?
> If that is true, then they wouldn't mind such renaming.
> 
> But if they are indeed symlinks, then yes, your script would need to fix them
> too (by looking at Newsgroups header, doing readdir() in each group, and
> finding realink(2) where it points until it finds one that need to be
> fixed). That would obviously make it even slower, yes.
> 
>>>>> With 300,000,000 articles, the server is quite large and transferring these
>>>>> articles to another server over a single connection takes forever.
>>> 
>>> Usin other server is the alternative, yes. You can run it in parallel over
>>> multiple connections, but only per-group parallelism (not at article
>>> level!).
>> 
>> With single or multiple connections, things will probably go wrong again due
>> to the crossposts.
> 
> Ah yes, you are correct, crossposts would break parallelism with multiple
> connections.
> 
> But, it should still work for single connection, given good preparation
> (see below).
> 
>> So it seems that renumbering by posted date is not possible at all due to the
>> crossposts.
> 
> You'd first have to create a list of all messages sorted by date (sorted
> history file would be great for that, were it not for the fact that it
> contains ONLY articles that arrived in last xx days, and not ALL of them).
> 
> And then you would simply feed the articles from that sorted list to the
> new (empty) server.
> 
> They would be arriving on new server just like they did in the real life
> in chronological order, to one group or to the other, and even crossposts
> would arrive correctly (as message "X" would be in all cases after all
> older ones, but before all newer ones, regardless of group(s) they were
> posted to).

I'll give it a try soon.
Thanks for the info.
Technical Details
Message-ID: <Rly3M.4031584$odm4.3369982@fx14.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> <slrnu4nhfu.t0i.mnalis-news@leia.home.lan> <hjU2M.4884116$WRz3.2113826@fx03.ams4> <slrnu4quhv.gho.mnalis-news@leia.home.lan>

Show Full Headers
Complete Article Headers
Message-ID: <Rly3M.4031584$odm4.3369982@fx14.ams4>
Subject: Re: Renumber newsgroups by post date
Date: Sun, 30 Apr 2023 18:22:41 GMT
From: Eli <eliistheman@gmail.com>
References: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <slrnu4nhfu.t0i.mnalis-news@leia.home.lan> <hjU2M.4884116$WRz3.2113826@fx03.ams4> <slrnu4quhv.gho.mnalis-news@leia.home.lan>
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: 54
X-Complaints-To: abuse@eweka.nl
Nntp-Posting-Date: Sun, 30 Apr 2023 18:22:41 UTC
Organization: Eweka Internet Services