🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1651

Re: Renumber newsgroups by post date

#1651
From: Matija Nalis
Date: Sat, 29 Apr 2023 20:12
51 lines
3210 bytes
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).

-- 
Opinions above are GNU-copylefted.
Technical Details
Message-ID: <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
References: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <20230423160822.Aq0OKbfG2jj0@sewer.dizum.com> <l8N1M.4640532$miq3.438385@fx02.ams4> <slrnu4nhfu.t0i.mnalis-news@leia.home.lan> <hjU2M.4884116$WRz3.2113826@fx03.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <slrnu4quhv.gho.mnalis-news@leia.home.lan>
Subject: Re: Renumber newsgroups by post date
Date: Sat, 29 Apr 2023 22:12:47 +0200
From: Matija Nalis <mnalis-news@voyager.hr>
References: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <20230423160822.Aq0OKbfG2jj0@sewer.dizum.com> <l8N1M.4640532$miq3.438385@fx02.ams4> <slrnu4nhfu.t0i.mnalis-news@leia.home.lan> <hjU2M.4884116$WRz3.2113826@fx03.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
Newsgroups: news.admin.peering
Organization: CARNet, Croatia
Sender: mnalis@public.hr
Injection-Info: news1.carnet.hr; posting-host="185.80.195.78"; logging-data="2827644"; mail-complaints-to="abuse@CARNet.hr"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:idVEFEgWQFdaBQa2u32vmio+3Bc=