🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Don Kuenz Sun, 28 Oct 2018 17:52
suck oldest articles first
#87876
Author: Don Kuenz
Date: Sun, 28 Oct 2018 17:52
36 lines
2431 bytes
Problem statement: How to use suck to pull in 1.2 million articles,
piecemeal, for a new local group, at a rate of 1,000 articles per 
session, oldest articles first?


suck attempts to pull in all articles for a new local group when its
-i argument is less than 1. It may take days to pull in 1.2 million
articles so it's better for me to periodically pull in a smaller
quantity of articles, piecemeal, until the entire archive of 1.2
million articles has been pulled.
    You can use a positive integer with suck's -i argument to limit the
quantity of articles pulled from a single invocation of suck. But, suck
normally pulls the newest articles. Is there any way to make it pull the
oldest articles first? suck's -rc looks somewhat promising:
 
    -rc --resetcounter
  
    This  option tells suck to change its behavior when the remote   
    server resets its article counters. The default behavior is to   
    reset the lastread in sucknewsrc to the current high article 
    counter. With this option, suck resets the lastread in sucknewsrc
    to the current low article  counter, causing it to suck all
    articles in the group, and using the historydb routines to dedupe
    existing articles.

Does anyone know how to use --resetcounter? Will it solve my problem? 

Thank you, 73,

-- 
Don Kuenz KB7RPU
There was a young lady named Bright Whose speed was far faster than light;
She set out one day In a relative way And returned on the previous night.


Re: suck oldest articles first
#87878
Author: Julien ÉLIE
Date: Sun, 28 Oct 2018 20:12
52 lines
3053 bytes
Hi Don Kuenz,

> Problem statement: How to use suck to pull in 1.2 million articles,
> piecemeal, for a new local group, at a rate of 1,000 articles per
> session, oldest articles first?

I believe the following option is the one you are looking for:

       -lr

       This  option, is used in conjunction with the highest article option in the sucknewsrc, to
       download the oldest articles, vice the newest articles.

       SUCKNEWSRC

       The second field is the highest article number that was in the group when that  group  was
       last downloaded.

       The  third field, which is optional, limits the number of articles which can be downloaded
       at any given time.  If there are more articles than  this  number,  only  the  newest  are
       downloaded.  If the third field is 0, then no new messages are downloaded.  If the command
       line option -lr is specified, instead  of  downloading  the  newest  articles,  suck  will
       download the oldest articles instead.

       The fields are separated by a space.

              comp.os.linux.announce 1 [ 100 ]



>      -rc --resetcounter
>    
>      This  option tells suck to change its behavior when the remote
>      server resets its article counters. The default behavior is to
>      reset the lastread in sucknewsrc to the current high article
>      counter. With this option, suck resets the lastread in sucknewsrc
>      to the current low article  counter, causing it to suck all
>      articles in the group, and using the historydb routines to dedupe
>      existing articles.
> 
> Does anyone know how to use --resetcounter? Will it solve my problem?

This is another thing.  Please have a look at the "-lr" option.

-- 
-- 
Julien ÉLIE

« Donner un César à une tragédienne ? Mais c'est absurde ! »
  (Astérix)

Re: suck oldest articles first
#87881
Author: Don Kuenz
Date: Tue, 30 Oct 2018 23:34
56 lines
3431 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Don Kuenz,
>
>> Problem statement: How to use suck to pull in 1.2 million articles,
>> piecemeal, for a new local group, at a rate of 1,000 articles per
>> session, oldest articles first?
>
> I believe the following option is the one you are looking for:
>
>        -lr
>
>        This  option, is used in conjunction with the highest article
>        option in the sucknewsrc, to download the oldest articles, vice
>        the newest articles.
>
>        SUCKNEWSRC
>
>        The second field is the highest article number that was in the
>        group when that  group  was last downloaded.
>
>        The  third field, which is optional, limits the number of articles
>        which can be downloaded at any given time.  If there are more
>        articles than  this  number,  only  the  newest  are downloaded.
>        If the third field is 0, then no new messages are downloaded.  If
>        the command line option -lr is specified, instead  of  downloading
>        the  newest  articles,  suck  will download the oldest articles
>        instead.
>
>        The fields are separated by a space.
>
>               comp.os.linux.announce 1 [ 100 ]

Your most helpful followup was read by me right after you posted it. 
Although -lr seemed like a plausible answer prior to my original post,
the "vice the new articles" puzzled me then, and still puzzles me.
    Since you posted your followup, thoughts about my next step have
filled my mind. One thing left out of my original post was my desire to
suck in the oldest articles first, but only /for one group at a time/.
    All of the other active groups, except for the chosen group, ought 
to continue to suck news in "as is." However, my mind imagines a 
nightmare scenario whereby all of the other groups ignore anything new 
and just pull in old articles, as instructed by -lr.
    A way out of my mess is to install innd on a different host, 
populate the active file with one group (the chosen group), and use -lr
to build up the archive. A separate host that uses the -lr argument 
seems like the best answer, unless someone else has a better idea.    

Thank you, 73,

-- 
Don Kuenz KB7RPU
There was a young lady named Bright Whose speed was far faster than light;
She set out one day In a relative way And returned on the previous night.


Re: suck oldest articles first
#87882
Author: Julien ÉLIE
Date: Fri, 02 Nov 2018 16:38
30 lines
2606 bytes
Hi Don Kuenz,
>      Since you posted your followup, thoughts about my next step have
> filled my mind. One thing left out of my original post was my desire to
> suck in the oldest articles first, but only /for one group at a time/.
>      All of the other active groups, except for the chosen group, ought
> to continue to suck news in "as is." However, my mind imagines a
> nightmare scenario whereby all of the other groups ignore anything new
> and just pull in old articles, as instructed by -lr.
>      A way out of my mess is to install innd on a different host,
> populate the active file with one group (the chosen group), and use -lr
> to build up the archive. A separate host that uses the -lr argument
> seems like the best answer, unless someone else has a better idea.

An idea would be to have two separate sucknewsrc files, and then invoke 
suck twice (with the right options for each sucknewsrc file).
You can do that with the "-dd dirname" option.
I hope it can do the trick for you.

If you run the two instances of suck in parallel, you should also 
specify another temporary directory with "-dt dirname" so that the newly 
created suck.newrc file in the temporary directory replaces the right 
sucknewsrc file.

-- 
Julien ÉLIE

« On ne va jamais si loin que lorsque l'on ne sait pas où l'on
   va. »

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