rt state restore
rt › state › restore
Restore state.db from a stamped backup copy (refuses while the daemon is running unless --force)
Usage
rt state restore <copy> [flags]
Arguments & flags
| Flag / Arg | Type | Default | Description |
|---|---|---|---|
<copy> | text | Backup filename (under rt state's backups dir) or an absolute path | |
--force | boolean | false | Override the running-daemon refusal (state.db is shared and WAL-mode; stop the daemon instead when possible) |
--json | boolean | false | Print the outcome as JSON |
See code: commands/state.ts › stateRestore