Backup Journal Database
backup_journalCreate a timestamped copy of the journal database in the backups/ directory to preserve project memory.
Instructions
Create a timestamped backup of the journal database. Backups are stored in the backups/ directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Custom backup name (optional, defaults to timestamp). Anti-Hallucination Hint: You can use positional args like mj.backup.backupJournal("my_name"). | |
| compress | No | Anti-Hallucination Hint: Compression is natively handled by the database engine. This parameter is safely ignored. | |
| use_test_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| path | No | ||
| error | No | Human-readable error message | |
| details | No | Additional error context | |
| message | No | ||
| success | Yes | ||
| category | No | Error category (validation, query, connection, internal) | |
| filename | No | ||
| sizeBytes | No | ||
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |