Skip to content

Ballast ​

Ballast backs up the services you run in Docker and checks that each backup can be restored before it calls the job done.

It stores the backups with restic on local disk, Backblaze B2, S3 or SFTP. Each service gets a plain status in the web UI, and Ballast can send a message through ntfy or a webhook when one needs attention. It is one static Go binary with a built-in web UI, and it has no telemetry.

Status ​

Ballast is alpha. Its author uses it daily on a personal homelab, but it has not had wide testing. Expect rough edges, and do not make it your only backup yet.

  • What exists. The restic tier with local, B2, S3 and SFTP destinations, the services listed below, and the restore checks described on this page. Local and B2 have seen the most use, so test a restore before you rely on any destination.
  • Not built. Phone backup and a mobile app. The web UI works on a phone. A second tier using rclone is planned.
  • Support. Only the latest release is supported.

How verification works ​

A backup file in a folder does not prove you can get your data back. Ballast reads the backup back and checks it before it marks the job done. The checks depend on the service, but at least one always runs:

  • Read files back. Ballast asks restic to pull a sample of the stored files out of the backup. This also shows the backup really is in the destination.
  • Archive check. Ballast checks that each archive file is complete and can be read from start to end.
  • Test restore of a database. For a database dump, Ballast starts a throwaway container running the same database software, restores the dump into it, and checks that it starts without real errors. Then it deletes the container.

The web UI shows one of these results for each service:

ResultColourMeaning
SafeGreenThe backup was made and checked, so it can be restored.
Not checkedAmberThe backup was made, but Ballast could not check it. Treat it as no backup until it turns green.
FailedRedThe backup itself did not work.
No backup yetGreyThe service has never been backed up.

Each destination is reported on its own, so a problem with one copy never hides the result for another. The History page lists each run, each check and the reason for any amber or red result.

Supported services ​

The built-in catalog covers:

  • Immich (database and photo library)
  • Vaultwarden, briefly stopped while its data folder is copied
  • CouchDB and Gitea
  • Any PostgreSQL, MySQL or MariaDB server running in a Docker container
  • Docker volumes, either stopped while copied or copied live
  • A Docker Compose project's configuration
  • Any folder on the machine, or chosen files from another machine over SSH
  • Whole Proxmox guests (VMs and LXC containers), using Proxmox's own vzdump

Catalog entries are plain YAML, so adding a service does not need Go code. See Adding a service to the catalog.

Screenshots ​

These come from a throwaway demo instance that backs up sample folders, not from a real server.

Overview page: two of four services need attention, one failed and one not backed up yet, and two are safe

The overview. One service failed, one has no backup yet and two are safe.

Backup history for the photos service: a run with two restore checks, both passed, and a Safe result for the local destination

The History page, showing the restore checks for one run of the photos service.

Overview page at phone width, showing the summary and the first service cards

The overview at phone width.

Install ​

Download the latest release. You need Linux on amd64 or arm64, and restic 0.17.0 or newer on your PATH. You do not need Go or Node, because the web UI is built into the program. These commands check the download before unpacking it:

sh
ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')
curl -fsSLO "https://github.com/springledev/ballast/releases/latest/download/ballast_linux_$ARCH.tar.gz"
curl -fsSLO https://github.com/springledev/ballast/releases/latest/download/checksums.txt
sha256sum --check --ignore-missing checksums.txt
tar xzf "ballast_linux_$ARCH.tar.gz"
sudo install -m 0755 ballast /usr/local/bin/ballast

To build from source instead, you also need git, make and Go 1.27 or newer:

sh
git clone https://github.com/springledev/ballast.git
cd ballast
make build
sudo install bin/ballast /usr/local/bin/ballast

A Docker image is not published yet.

Then follow the quickstart to set up your first backup with the setup wizard.

Documentation ​

GuideContents
QuickstartRequirements, install, setup wizard, an Immich example
Configuration referenceFile locations, credentials, schedules, retention, exclusions, extra destinations
Running Ballast with systemdUnit files, credentials, networking, triggers, a smoke test
All guidesUpgrading, Docker hosts, Proxmox, replacing a script, the catalog

Trade-offs ​

  • Linux only. Ballast runs on Linux and has not been built for other systems.
  • Needs restic. Every backup and check goes through restic, so it must be installed and kept up to date.
  • No Docker image. Ballast installs as a single binary. No image is published yet, though you can build one from the Dockerfile in the repository.
  • One maintainer. Ballast is maintained by a single developer.
  • Not audited. The code has not been independently audited.

Source and licence ​

Source and issues are on GitHub. Ballast is licensed under Apache-2.0. Its shared Go code lives in Keel. If Ballast is useful to you, you can sponsor the work on GitHub.

Source for every project is on GitHub. You can sponsor the work there too.