backup_db
Backup a live SQLite database with timestamp, optional label, and secondary copy. Returns file path, size, SHA-256 checksum, and elapsed time.
Instructions
Create a timestamped backup of the Metis SQLite database.
Uses SQLite's Online Backup API — safe to run while the database is live.
Args:
destination: Directory path to write the backup into.
Defaults to metis/system/backups/.
label: Optional label appended to the filename, e.g. 'pre-upgrade'.
extra_destination: Optional second directory for off-site / secondary copy.
Returns JSON with backup_path, size_kb, checksum (SHA-256), and elapsed_ms.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination | No | ||
| label | No | ||
| extra_destination | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |