🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes.announce
Article #538

Added tasks in maintenance.php for rslight

#538
From: Retro Guy
Date: Fri, 15 Nov 2024 14:58
48 lines
3315 bytes
Since the recent bug introduced into rslight by some unnamed developer,
I've added some features to mainenance.php to help in repairing and
maintaining a spool.

Here are the main features of the script. NOTE: This script is only
meant to be used on systems NOT using tradspool. Don't use tradspool
anyway, it's not the default and it's not tested very well.

-clear-diskcache: Remove all cache files if using Disk Caching
    If you are using caching, and using the 'diskcache', this will clean
out the files, which can be a good idea if making major repairs to the
spool. If you are using memcacheD, just restart the daemon to clear it's
cache.

-import: Import articles from a .db3 file (-import alt.test-articles)
    This will clear the overview for a group, then rebuild it for that
group including ONLY the articles that actually exist in your articles
database. This repairs any overview articles (removes) that don't
actually exist on your server.

-newsection: Create a new section for groups (-newsection mynewsection)
    This will create a new section for your site. You then only need to
edit the groups.txt file in your config dir/section name/ directory.

-refill: Go back x articles and retrieve missing from remote server
    (-refill alt.test 200)
    This will go back x articles from the remote server's newest article
number, and pull articles that you do not already have. It will skip
duplicates.

-remove: Remove all data for a group (-remove alt.test)
    This will remove all articles and overview data for a group. You
must still manually remove the group name from your config dir/section
name/groups.txt file.

-reset: Reset a group to restart from zero messages (-reset alt.test)
    This will reset the remote server pointer to '1' for a group, and
will also remove all the articles from overview and articles databases.

-reset-section: Reset ALL GROUPS in a Section to restart from zero
messages.
    (-reset-section rocksolid)
    This does the same as '-reset', but for an entire section.

These changes should be in 'devel' later today (15 Nov, 2024).

-- 
Retro Guy
Technical Details
Message-ID: <18073f9c1555e8cd5726a1b4f66e34d6@www.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <18073f9c1555e8cd5726a1b4f66e34d6@www.novabbs.org>
Subject: Added tasks in maintenance.php for rslight
Date: Fri, 15 Nov 2024 14:58:54 +0000
From: Retro Guy <retroguy@novabbs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
 logging-data="2592371"; mail-complaints-to="usenet@i2pn2.org";
 posting-account="HNchV9coSOli+kkOHciCZlGs2VaRn7Emh38jWV1k174";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 28547bffeec402cc2e544e2f8e28cc9329f66434
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$1rK7MTyQ6dI3k0fPJOVeQuN40lyWxlzyael/t.albZ7gtfIDHkGCm
X-Spam-Checker-Version: SpamAssassin 4.0.0