Backups & upgrades
In short
Back up before every upgrade. ReelVault also backs up its database before a server update, and it refuses to restart while people are watching.
What to back up
Everything you need is in your data folder (ROOT_DIR, data by default). Copy the whole folder.
| Where | Data folder |
|---|---|
| Docker | The reelvault-data volume |
| Linux installer | ~/.local/share/reelvault/data |
| Windows installer | %LOCALAPPDATA%\ReelVault\data |
| Portable archive | The data folder inside the unpacked archive |
In Docker, generated secrets are kept in /data/secrets.env, inside the data volume. Back up the volume as a whole. If the session secret is lost, everyone is signed out.
Update ReelVault
In the admin panel: open Admin → Updates. Check for a new version, then start the install. Watch the progress there.
- Cancel. You can cancel while an update is still downloading, verifying or extracting. Once files are being replaced, the update finishes.
- Streams. A server update restarts ReelVault, which ends every stream. While streams are playing, ReelVault shows how many, and asks you to confirm before it restarts anyway. Confirm only when you are sure nobody is watching.
- Backup first. Before a server update replaces any file, ReelVault copies the database and checks the copy.
- Disk space. An update needs about five times the size of its archive in free space. It stops before the download if there is not enough.
- Rollback. If something goes wrong, roll back to the previous version from the same page.
- History. The updates page lists every install and rollback, with its status and any error.
Docker
Updates from the admin panel are not used for Docker or Podman containers. Update the image instead:
docker compose pull
docker compose up -dBack up the database
In the admin panel: open Admin → Database.
- Download a backup to keep it somewhere else.
- Integrity check runs SQLite's quick check and lists any problems.
- Migrations shows how many database updates have run, and how many wait for the next start.
Before a restore, ReelVault backs up the current database. The restore is refused while streams are active, unless you force it.
Restore a backup
- Open Admin → Database and choose the backup.
- Confirm the restore. ReelVault keeps a copy of the current database first.
- Check that your libraries and users look right afterwards.
Offline recovery
Use these commands when nobody can sign in. They work on the database directly, so stop the server first when a command says so.
bun run admin:reset-password alex@example.com
bun run admin:two-factor-enforcement off
bun run db:check
bun run db:backup| Command | What it does |
|---|---|
admin:reset-password <email> | Sets a new password. Add --password to choose it, or --disable-2fa to remove a lost authenticator |
admin:two-factor-enforcement <on|off> | Turns required 2FA on or off. Restart the server afterwards |
db:check | Runs an integrity check |
db:backup | Creates a consistent backup in the backups folder |
db:vacuum | Compacts the database. Stop the server first |
These commands come from the server source. See Run from source.
Next steps
- Diagnostics & logs: find out what went wrong.
- Troubleshooting: common problems and fixes.