• Added tasks in maintenance.php for rslight

    From Retro Guy@retroguy@novabbs.com to rocksolid.nodes.announce on Fri Nov 15 14:58:54 2024
    From Newsgroup: rocksolid.nodes.announce

    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
    --- Synchronet 3.21a-Linux NewsLink 1.2