Metis — Restore Db
restore_dbRestore a database from a backup: overwrites the current live database after renaming it for recovery, requires explicit confirmation and a dashboard restart.
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 |
|---|---|---|---|
| confirm | No | ||
| backup_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |