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