Standalone
backmon is a single binary without dependencies. You can run it as container or directly on a host.
Container image
Multi-arch images (linux/amd64, linux/arm64) are published to two registries with the same content and tags:
| Registry | Image |
|---|---|
| Docker Hub | dreitier/backmon |
| GitHub Container Registry | ghcr.io/dreitier/backmon |
Each release is tagged with x.y.z, x.y, x and latest, e.g. 5.0.1, 5.0 and 5.
$ docker run -p 8000:8000 \
-v "$PWD/config.yaml:/etc/backmon/config.yaml" \
ghcr.io/dreitier/backmon:5
- The configuration file is expected at
/etc/backmon/config.yaml; the published port has to match itsport. - Placeholders like
__${VAR}__in the configuration are replaced with environment variables of the container (docker run -e VAR=...). - The image is based on
distroless/staticand runs as the non-root user65532. If backmon has to read backup files from a mounted directory which that user can't access, set the user accordingly, e.g. with--user.
The images are signed with Sigstore and come with build provenance attestations; see Verifying releases.
Binaries
Binaries for Linux, macOS and Windows (amd64 and arm64) are attached to each
GitHub release, together with checksums.txt and SBOMs.
$ ./backmon
backmon looks for config.yaml in the current directory, in ${HOME}/.backmon and in /etc/backmon. In a
terminal it runs interactively (r reloads the configuration and rescans the disks, q quits); start it with
-background to disable that, e.g. as a service.
Reloading the configuration
backmon reloads its configuration file
and rescans the disks when it receives SIGHUP:
# process on a host
$ kill -HUP "$(pidof backmon)"
# systemd; the unit file of the release archives contains ExecReload
$ systemctl reload backmon
# container
$ docker kill --signal HUP <container>
A container only sees a changed configuration file if the file is modified in place. Editors which replace the file
(e.g. vim or sed -i) break a bind mount of the single file; mount the directory instead
(-v "$PWD/config:/etc/backmon").
Kubernetes
Use the Helm chart.