Metis — Restore Db
restore_dbRestore the Metis database from a .sqlite backup while preserving the current live database as a timestamped pre-restore copy; restart the dashboard afterward.
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 |