Host-local administration#
Destructive and schema-changing operations run only on the host that runs the server, through
the geonemo-services command. They are never remote API routes or MCP tools, and the typed
client does not expose them. Ordinary clients use the versioned API.
The commands of an optional part exist only when the part is in the parts list. The generated Server commands lists every command and parameter.
Run commands#
Inside a Compose stack, use the database-admin service, which carries the migrator
credentials and is not started with the stack:
docker compose --env-file ENV_FILE $files run --rm --no-deps \
database-admin geonemo-services database migrate
On a host without a stack, copy deploy/configs/admin.env.example to a private file, replace
every placeholder, set mode 0600, and load it only in the shell that runs the command. Never
mount it into an API, worker, monitor or retention container.
Commands#
Task |
Command |
|---|---|
Apply schemas |
|
Verify the installed baseline |
|
Back up all databases |
|
Verify a backup |
|
Restore into empty databases |
|
Reconcile dependent layers |
|
Export canonical GKB Markdown |
|
Restore a GKB snapshot |
|
Reconcile canonical files with projections |
|
Rebuild projections |
|
Run compaction and backup once |
|
Issue a service credential |
|
The confirmation phrase of a destructive command is printed in its --help output.
Rebuild the GKB projection#
The projections in PostgreSQL are rebuildable. The canonical Markdown root is the source of truth, with one writer set per root.
Stop the GKB worker and maintenance processes.
Back up the canonical root.
Point the server at an empty projection database and run
geonemo-services database migrate.Run
geonemo-services gkb reconcile --rebuild-empty-catalog.Start the processes again.
The command refuses a projection database that is not empty.
Rules#
Verify a backup offline and restore it into isolated, empty targets before relying on it.
Never attach one canonical root to two writer sets.
Reset, restore, reconciliation and deletion commands are run by an operator who reviewed the exact change; nothing in the API triggers them.
Production Milvus administration is also host-local.