# Operations: backup, restore, upgrade, rollback Procedures for backing up, moving, upgrading and (if needed) rolling back a Nightlight installation. Everything here is read-only against the running container except where marked. ## What makes up an installation Everything that matters lives under the data volume you mapped to `/app/data` (`APPDATA_DIR` in `.env`, or the **Data Directory** field on Unraid) — there's nothing else to back up unless you've moved clips elsewhere. The database and the app's secrets are in a folder of their own inside it, `private/` (see [The private folder](#the-private-folder)): - `private/babymonitor.db` (+ its `-wal`/`-shm` companion files — see "Backing up" below, this matters): cameras, children, settings, accounts, sessions, and every stored password and token - `private/.jwt_secret` — signs every session; losing it just signs everyone out, it isn't sensitive key material for anything else (there is none if you set `JWT_SECRET`) - `private/firebase-service-account.json` and `private/google-services.json`, if you use Firebase push ([notifications.md](notifications.md#option-b-firebase)) - `private/detection-snapshots/` and `private/transition-snapshots/` — the pictures taken for alerts and bed changes - `private/backup--