Skip to content

Installation

ReoVault runs as one Docker container next to your cameras. Signed images for linux/amd64 and linux/arm64 are published at ghcr.io/wiebe-vandendriessche/reovault; the image already contains the pinned reolink-cli, restic and rclone.

Docker Compose

You create two things; ReoVault makes the rest from the dashboard.

mkdir reovault && cd reovault
curl -fsSLO https://raw.githubusercontent.com/wiebe-vandendriessche/reovault/main/compose.yaml
mkdir data
openssl rand -base64 32 | tr -d '\n' > restic-password && chmod 600 restic-password
docker compose up -d
docker compose logs reovault | grep setup.code

The folder is mounted at /config and must be writable by uid 1000 (the container user): create it and data/ as a normal user before the first docker compose command, not with sudo.

  1. The restic password (restic-password) encrypts every backup. Keep a copy in your password manager: without it, nothing can be restored.

  2. The first-run screen. Open the dashboard (port 8080). With no login yet, it asks for the one-time setup code from the log above (XXXX-XXXX, printed on every start until setup is done), and for the email and password you want to sign in with. Nobody who can reach the port but can't read the log can take the dashboard over. (docker compose run --rm reovault web set-password after setting [web] email by hand does the same from the terminal.)

  3. Destinations. Settings, Destinations, Connect:

  4. a local disk: mount it in compose.yaml (/mnt/disk/reovault:/backups), then connect the folder /backups;
  5. Nextcloud, SFTP, S3 and Backblaze B2: fill in the form;
  6. OneDrive and Google Drive: run rclone config on a computer with a browser, make the remote, and paste its [section] from its rclone.conf.

The first destination is the primary. Connect a second (a cloud account, a NAS) and it receives copies of everything: that is 3-2-1. Each one can have a keep-days and a size limit.

  1. Cameras. Cameras, Add camera: find them on your network, enter the camera's user and password and pick its timezone. ReoVault logs in once to check before it saves the camera. A demo camera needs no hardware.

  2. Recovery. Settings, Recovery says where the restic password lives and offers a recovery sheet (no passwords in it). Once something is backed up, the Overview reminds you to store the restic password somewhere other than this server until you press I stored a copy somewhere safe. ReoVault also backs up its own config into each destination, so a replacement server can start from the footage alone; see Restore without ReoVault.

All of this ends up in reovault.toml and rclone.conf next to compose.yaml, written by ReoVault (owner-only). Editing them by hand works the same; see Configuration. docker compose exec reovault reovault doctor checks the tools, the folders and every camera's repository without changing anything.

compose.yaml supports two ways to reach the dashboard: behind a reverse proxy (the default, no port published), or a direct port on your LAN/VPN. See the comments at its top and Security.

A destination behind a strict firewall

Some hosts block your IP for hours after a burst of traffic. iLab.t's Nextcloud did so within minutes of every weekly check. For such a destination, turn its weekly integrity check off (Settings, Destinations, Limits, or check = false in reovault.toml) and cap rclone in compose.yaml:

    environment:
      RCLONE_TPSLIMIT: "3"        # requests per second, per restic call
      RCLONE_BWLIMIT: "off:2M"    # uploads unlimited, downloads 2 MiB/s

The first run

The first run backs up everything that's on each SD card: on the verified cameras about 4 to 5 MB/s, so a full 256 GB card takes about 16 hours. ReoVault works through it oldest-first (the clips the card overwrites next) while new clips still go out within the hour; the dashboard shows the progress and an estimate. A second destination is seeded in the background (the dashboard shows "copying 120 of 430"). At most two 2 GB batches per camera are on local disk at any time.

Upgrading

docker compose pull && docker compose up -d

Verifying the image

Release images are signed keylessly with cosign by the release workflow, and carry an attested CycloneDX SBOM:

cosign verify ghcr.io/wiebe-vandendriessche/reovault:<version> \
  --certificate-identity-regexp '^https://github\.com/wiebe-vandendriessche/reovault/\.github/workflows/release\.yml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Building from source

In compose.yaml, comment out image: and uncomment build: ., then docker compose up -d --build.

Alerts

Alerts go out when backups keep failing, a camera stops answering, clips are about to be overwritten before they're backed up, clips keep failing to download, the weekly check finds damage, a destination answers without the backups it should hold, a destination can't be reached or a copy falls behind, a size limit cuts backups short (is too small, or waits for copies), no destination is set up, or alerts are on with no channel. Configure one or more channels under [alerts] in reovault.toml; secrets go in files next to it (the folder is mounted at /config):

[alerts]
ntfy_url = "https://ntfy.sh/an-unguessable-topic"
# ntfy_token_file = "/config/ntfy-token"
# webhook_url_file = "/config/alert-webhook"   # Slack and Discord URLs work as-is
# smtp_host = "smtp.example.com"
# smtp_user = "reovault@example.com"
# smtp_password_file = "/config/smtp-password"
# smtp_to = ["you@example.com"]

Settings, Alerts on the dashboard has a Send test button.