restore_db
Restores a database from a specified .sqlite backup file, renaming the current database for recovery. Requires explicit confirmation to proceed.
Instructions
Restore the Metis database from a backup.
Renames the current live database to <db>.pre-restore.<timestamp>
before overwriting, so you can recover if something goes wrong.
IMPORTANT: This overwrites the live database. All changes since the backup
was taken will be lost. The dashboard must be restarted after restore.
Args:
backup_path: Full path to the .sqlite backup to restore from.
confirm: Must be the string 'YES' to proceed.
Returns JSON with status and paths.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup_path | Yes | ||
| confirm | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |