Skip to main content

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 / ArgTypeDefaultDescription
<copy>textBackup filename (under rt state's backups dir) or an absolute path
--forcebooleanfalseOverride the running-daemon refusal (state.db is shared and WAL-mode; stop the daemon instead when possible)
--jsonbooleanfalsePrint the outcome as JSON

See code: commands/state.ts › stateRestore