Skip to content

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.

WhereData folder
DockerThe reelvault-data volume
Linux installer~/.local/share/reelvault/data
Windows installer%LOCALAPPDATA%\ReelVault\data
Portable archiveThe 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:

bash
docker compose pull
docker compose up -d

Back 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 ​

  1. Open Admin → Database and choose the backup.
  2. Confirm the restore. ReelVault keeps a copy of the current database first.
  3. 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.

bash
bun run admin:reset-password alex@example.com
bun run admin:two-factor-enforcement off
bun run db:check
bun run db:backup
CommandWhat 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:checkRuns an integrity check
db:backupCreates a consistent backup in the backups folder
db:vacuumCompacts the database. Stop the server first

These commands come from the server source. See Run from source.

Next steps ​

Released under the GNU GPL v3.