knowledge_backup
Snapshot the Cortex knowledge store to a consistent SQLite file for offline restore, then verify its integrity; existing files are not overwritten.
Instructions
Snapshot the store to a consistent SQLite file (VACUUM INTO, safe under WAL) and report its integrity. Refuses to overwrite an existing file. Restore is done offline via 'cli restore ' while the server is stopped.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "knowledge_backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | No | Absolute target path; defaults to <CORTEX_DB_DIR>/backups/cortex-backup-<timestamp>.sqlite |