Administration

Administrators manage the Marginalia installation: user accounts, database backups, cleanup of deleted data, updates and extensions. The first account, created on the first start, is an administrator; it can make other users administrators too.

Administrators are also normal users with their own books - they don't see other users' books, lorebooks or settings, only the lorebooks and protocols those users share with everybody.

The Admin page

Administrators have an Admin button at the bottom of the workspace. In the phone layout (a window narrower than 768 pixels) it is the tab Admin of the drawer. It opens the admin page with these tabs:

Tab  
Users Creating, editing and deleting accounts, and giving users permissions. See Users.
Database Backups Backups of the whole database, on demand or on a schedule, and restoring them. See Database backups.
Cleanup Permanently removing deleted data. See Cleanup.
Resource Files Finding the files of resources that nothing uses any more, downloading them as a ZIP and deleting them from the disk. See Resource Files.
Help assistant The chat that answers questions from the manual: the model, the prompts and who pays for it. See Help assistant.
Agents The system prompt and the compaction prompt that agents follow when neither they nor their user have one of their own. Empty is the built-in prompt; the info icon has Insert Default Template, which fills it in so you can edit a copy. What users may do with agents is their permission. Also Agents may send messages to the webhooks of users: the server calls the address a user typed in their settings when an agent needs them and they have the application closed (When you are not there); turn it off where that is not acceptable.
Statistics Whether the writing statistics are recorded at all, how long they are kept, and clearing the statistics of a user or of everybody. See Statistics.
Jobs The log of everything that was asked of an external AI (who, when, which calls, how they ended), a filter that deletes old entries by hand, and the page /jobs with the jobs that run now. See Jobs.
GPUs One graphics card shared by the language model and the image and speech servers: the GPUs, the GPU locks (how each model is loaded and the card freed of it) and the steps they run, what each GPU holds now and Unload now. See GPUs.
Update On a Docker server: the running version, the newest version of the branch the server follows, and the button that updates and restarts Marginalia. See Updates.
Extensions Installing and removing extensions. See Managing extensions.
The Agents tab of the Admin page
The Agents tab of the Admin page

The data folder

Everything Marginalia stores is in the .marginalia folder in the home directory of the user that runs it (./data on the host with the Docker setup):

Path  
marginalia.sqlite (with -wal, -shm) The database: users, books, lorebooks, settings, everything.
secret.key Key that encrypts the API keys in the database. Created on the first start, readable by its owner only (on Linux and macOS); without it, saved API keys can't be read. If it is readable by other users of the computer, the log says so: chmod 600 secret.key.
db-backups/ Database backups.
data/<login>/backups/manuscripts/<book id>/ Book backups of each user.
extensions/ Installed extension JARs.
update/ The files Marginalia and the update watcher of a Docker server talk through: the status, the log of the last update, the request.
agent-workspaces/<agent id>/ The files of an agent (its notes and reports, which it keeps between runs).
agent-runs/<run id>/ What a run of an agent keeps: the start of the book (to show you the changes, removed with the working copy), the checkpoints and the findings (removed when the run is purged by the cleanup).
desktop/logs/ Logs of the desktop app.

To back up a whole installation, stop Marginalia and copy this folder (including secret.key). While it runs, use database backups for the database; book backups and extensions are plain files and can be copied at any time.