• What maintenance do YOU run?

    From paulie420@21:2/150 to All on Fri Sep 11 07:23:31 2020
    On your Mystic install, what daily/weekly maintenance do you run? It might
    even be nice to have any scripts that you run pasted into the message so that sysops from different platforms can search fsx and find the info.

    I'm on Linux, so thats what I'm hunting... however if this post gets any traction it would be beneficial for all types of systems. Be sure to specify, for those who might not know how to decipher the commands.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A45 2020/02/18 (Raspberry Pi/32)
    * Origin: American Pi BBS (21:2/150)
  • From Warpslide@21:3/110 to paulie420 on Fri Sep 11 11:43:54 2020
    On 11 Sep 2020, paulie420 said the following...

    On your Mystic install, what daily/weekly maintenance do you run?

    I have my mailin.ini set to also do message linking at the time of tossing,
    it doesn't take very long, so why wait until nightly maintenance to do it?

    ImportEchoMail = true
    FileToss = true
    LinkMessages = true


    I also have a maint.ini which I run nightly:

    PurgeMessageBases = true
    PackMessageBases = true
    PackFileBases = true
    FileSort = true
    LinkMessages = true
    PurgeUserBase = true
    PackUserBase = true

    maint.ini is called from a .bat file which also 7zips the BBS directory and then moves that .7z archive to a local NAS for safe keeping.

    Most doors take care of themselves, but Usurpur tends to take a long time the first time a user runs it on a new day, so I also force maintenance for
    Usurper in the nightly maintenance.

    I'm not sure of a graceful way to stop mis.exe from running on Windows, so I just have a command in there to kill it and delete the mis.bsy file. I also have an option in there to delete any backups older than 7 days, which is
    what the forfiles command does. (forfiles doesn't like UNC paths so I map a drive temporarily to do that).


    @ECHO OFF
    C:
    CD \mystic
    mutil.exe maint.ini
    CD \Users\BBS\AppData\Local\Temp
    TASKKILL /F /IM mis.exe /T
    DEL \mystic\semaphore\mis.bsy
    "\Program Files\7-Zip\7z.exe" a -t7z nrbbs-%date%.7z c:\mystic\
    MOVE nrbbs-%date%.7z "\\nas\Data\Jay Backups\BBS"
    net use Z: "\\nas\Data\Jay Backups\BBS"
    forfiles /p "Z:" /s /m *.* /D -7 /C "cmd /c del @path"
    net use Z: /DELETE
    CD \mystic\doors\usurper
    USURPER.EXE /FMAINT
    CD \mystic
    mis.exe server

    Of course I don't run door games anymore and am now running on a Raspberry
    Pi, so I sill run the same maint.ini file but backups work a bit different.

    I have a crontab entry set to run each night:

    rsync -avz /home/pi/mystic/ /mnt/nas/Jay\ Backups/BBS/


    Seems to do the job.

    Jay

    ... What do you call a laughing motorcycle? Yamahahaha.

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Warpslide@21:3/110 to paulie420 on Fri Sep 11 17:29:52 2020
    On 11 Sep 2020, Warpslide said the following...

    On your Mystic install, what daily/weekly maintenance do you run?

    One thing I forgot...

    I also have a nodelist.ini file which I run every Friday evening to import
    the updated weekly nodelists:

    [General]

    MergeNodeLists = true

    logfile=mutil.log
    logcache=true
    loglevel=2
    logtype = 0
    maxlogfiles = 3
    maxlogsize = 1000

    [MergeNodeLists]

    strip_down = true
    strip_private = true

    nodefile=/home/pi/mystic/files/fdn_FSX_NODE nodefile=/home/pi/mystic/files/fdn_MIN_LIST nodefile=/home/pi/mystic/files/fdn_NODELIST

    Jay

    ... Want to hear a joke about paper? Never mind, it's tearable.

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From paulie420@21:2/150 to Warpslide on Fri Sep 11 12:35:53 2020
    Seems to do the job.
    Jay
    ... What do you call a laughing motorcycle? Yamahahaha.

    Very nice, Warp... I'm on all-linux systems but know how to suck out all the data of what you're doing. I like how you do some message maint as it goes...

    I don't know if I want to announce it, but I haven't done any maintenance of
    my bbs! So... well; I guess I do backups and I packed the msg/user bases once because there were deleted users and msgs. BUT... I don't have a hands-off system.

    I'm going to put most all of what you stated into operation. Wonder if others post anything new - heck maybe even something that helps a veteran out.

    Thanks for sharing, I appreciate it.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A45 2020/02/18 (Raspberry Pi/32)
    * Origin: American Pi BBS (21:2/150)