Restore
Restore replaces a damaged or replaced install with files from a verified Back Up. Work on a copy of the Back Up, not the only copy.
The quick path: put back one of GRiMbot's copies
Use this when the program files are fine and only the database is wrong — bad rows after a plugin misbehaved, settings you did not mean to change, history that looks cut off.
- Stop GRiMbot.
- Open the install folder and find
data/snapshots/. Pick the newest copy that predates the trouble. The Database window names the copies and shows the time each was taken, so read it before you stop anything, not after. - Move the live trio out of the way:
data/grimbot.db,data/grimbot.db-wal,data/grimbot.db-shm. Do not delete them; you may want them back. - Copy the chosen
grimbot-YYYYMMDD-HHMMSS.dbtodata/grimbot.db. - Start GRiMbot.
- Sign in to GRiMbOS, open System → Database, and confirm the file size, the row counts under Biggest tables, and that the newest copy is the one you expected.
- Confirm chat history, Chat Games, and settings look right. Then delete the trio you moved aside.
The copy restores clean because GRiMbot checked it when it took it. This path was rehearsed on a copy of a live install before it was ever needed: the copy was put on a scratch path, GRiMbot was started against it, and the row counts matched.
Do not start a second GRiMbot on a copy while the first one runs. A copy carries your saved logins, so a second running bot connects Discord, Spotify, StreamElements, OBS, and Twitch a second time.
Full Restore
Use this when the machine, the folder, or the whole install is gone.
Prerequisites
- A Back Up that includes
.envanddata/. - The same major GRiMbot package family as the Back Up when possible.
- The operator can stop GRiMbot.
Procedure
- Stop GRiMbot.
- Install or extract Core into the intended folder if the program files are missing.
- Restore
.envinto that folder. - Restore the
data/directory sodata/grimbot.dband media sit in the same relative places. - Do not start GRiMbot until the restored
.envand database are in place. - Start GRiMbot.
- Sign in to GRiMbOS.
- Open System Status and Connection Status.
- Confirm Twitch Chat, overlays, and required plugins.
After Restore
Re-authorize Twitch only if System Status reports invalid tokens. Tokens in .env from the Back Up should still work if Twitch has not revoked them.
If Restore is onto a new machine, update any LAN URLs you stored for the PC Agent (GRIMBOT_AGENT_URL). Do not publish those addresses.
Open System → Database. The file size, the copies list, and the weekly check answer tell you the restored database is the one you meant.