db_restore
Restore a database backup over the live tracker, overwriting current data. Creates a safety backup first and requires confirmation before proceeding.
Instructions
Restore a backup over the live tracker. DESTRUCTIVE and irreversible: it takes a safety backup first and refuses without confirm: true. Restoring the wrong file over a working tracker is the mistake with no undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory identifying the project and the tree. Defaults to this session's working directory, which in a git worktree is that worktree. | |
| name | Yes | The backup filename, from db_backups. | |
| confirm | Yes | Must be true. This overwrites everything currently tracked. |