Files and backups
| What | Where | Back up |
|---|---|---|
| Code releases | /opt/clips/releases/<rev>, active /opt/clips/current | optional |
| Config | /etc/clips/clips.toml, /etc/clips/clips.env | yes |
| Secrets | /var/lib/clips/secrets/twitch_token.json, /var/lib/clips/secrets/instagram.json, /etc/clips/secrets/web_password | yes |
| State, ratings, saved operational settings | /var/lib/clips/state.db (+ backup/ copies at 01:30) | yes |
| Reports | /var/lib/clips/reports/<run>/ | yes |
| Raw video, chat, clips | /srv/clips-media/{raw,chat,candidates,eval} | no, large and regenerated |
| Post drafts, plan, feedback | posts and post_feedback tables in state.db | yes (with state) |
| venv, models, llama.cpp, scratch | /var/cache/clips | no, rebuild from requirements.txt and the model links |
Operational edits from Advanced configuration live in the existing SQLite meta table; events records changes. They override the TOML baseline without changing its permissions or comments. Back up both the server file and state to preserve the complete configuration.
Before changing a live installation, keep a backup of the configuration, secrets, and SQLite state. Store backups privately because they include account access. Do not reset a live database to create documentation screenshots.