mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
bbs backup makes one archive (bbs-YYYYMMDD-HHMMSS.tar.gz) of bbs.conf, the database and the files' directories, while callers are on: the database as a SQLite file whatever its engine, taken whole at one moment (SQLite's by VACUUM INTO, a server's in one read-only repeatable-read transaction: store.Snapshot). It is written beside its final name and renamed when whole; past [backup] keep the oldest go. [backup] says where (beside an SQLite database by default), when (at = HH:MM, daily, in serve), how many, and whether the files go too; it is live at a reload. bbs backup list, and bbs backup restore ARCHIVE -yes with the BBS stopped: each thing put where this system's configuration says, what is there renamed aside (.before-restore-STAMP), a server's database copied into a new empty one; an archive whose names climb out is refused before anything changes. The configuration screens' Maintenance has Back up now, the backups made, and [backup]'s keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
3.1 KiB
3.1 KiB
A sysop's main menu has *, Sysop tools (and a custom menu may have a
sysop item). It works on any terminal; watching a node needs a text
terminal.
| key | ||
|---|---|---|
| watch a node | W |
what a text caller is sent, as it is sent, on your screen: their menus, their door, their typing echoed. A key stops; their leaving ends it. Their screen size and character set are theirs |
| chat with a node | C |
the caller is told you would like a word, and taken into a private chat with you at their next menu (their page's room, sysop-N); you wait there |
| kick a node | K |
throw a caller off, after a yes |
| users | U |
every user's level, flags and state; for one: their level, flags (+AB -C adds and takes), lock or unlock, sysop rights given or taken, a new password. Not your own lock or rights |
| statistics | S |
totals (users, messages, mail, files; logins, posts, pages and failed logins since the start), and calls, new users, posts and uploads for each of the last 14 days, as bars |
| hack log and bans | H |
the addresses banned now (a number lifts its ban), and L the hack log's last 100 lines |
| scheduled events | E |
the events, when they run next and how their last run went; one's command and output, and R runs it now |
| configuration | F |
the configuration menus: the board, the system, connections, services, users and groups, maintenance; nothing changes until F10 saves (F9 quits), and then what may change while callers are on is put in force at once (Configuration). Shown when the BBS runs with -config |
| available | A |
whether pages reach you; when not, a caller who pages is told you are not available and may leave you a message |
Validating new users stays on the main menu (V, when some wait).
Scheduled events
; bbs.conf
; every day, at this local time
[event nodelist]
command = /usr/local/bin/get-nodelist --to "/var/lib/bbs/fido/nodelist"
at = 03:30
; every 60 minutes, for at most 300 seconds (default 600)
[event fidopoll]
command = /usr/local/bin/bbs fido poll
every = 60
timeout = 300
An event is a program and its arguments (words parted by spaces; "..."
or '...' keep spaces in one), run without a shell, with BBS_EVENT set
to its name, at most one at a time. It runs at a time each day or
every so many minutes (the first after that many minutes from the
start). A run that goes past timeout is stopped. The log has each
run; the last run's end and output (its last 4 KB) are kept for the
sysop tools and the API. bbs check warns of a program it cannot find.
The API
GET /api/v1/admin/events |
the events, their next and last runs |
POST /api/v1/admin/events/{name}/run |
run one now, and wait for it |
PUT /api/v1/admin/available |
{"available": false}: pages reach no one |
GET /api/v1/admin/bans, DELETE /api/v1/admin/bans/{ip}, GET /api/v1/admin/hacklog |
bans and the hack log |
POST /api/v1/admin/nodes/{n}/kick |
throw a caller off |
See also: Administration, Security, Chat and paging