runner

module
v0.1.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

README

Backproof runner

The Backproof runner proves that your latest Postgres backup actually restores. It runs in your own infrastructure, restores the backup into a throwaway container, runs checks on it and reports metadata to Backproof. Your data never leaves your machine.

Status: early development. There is no release yet. backproof register, backproof agent, backproof run --once, backproof version and the development command backproof restore --file <path> work so far.

Documentation

Development

You need Go, Docker, golangci-lint and GoReleaser.

go build ./...                          # build
go test ./...                           # unit tests
go test -tags integration ./test/...    # integration tests
golangci-lint run                       # lint
goreleaser release --snapshot --clean   # local build, never publishes

Snapshot builds tag the image once per platform. To run the one for your machine:

docker tag "backproofhq/runner:dev-$(go env GOARCH)" backproofhq/runner:dev
docker run --rm backproofhq/runner:dev version

Security

To report a vulnerability, see SECURITY.md.

License

Apache 2.0

Directories

Path Synopsis
cmd
backproof command
Command backproof proves that Postgres backups restore, inside the customer's infrastructure.
Command backproof proves that Postgres backups restore, inside the customer's infrastructure.
internal
agent
Package agent connects the runner to Backproof.
Package agent connects the runner to Backproof.
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
archive
Package archive identifies backup files from their contents.
Package archive identifies backup files from their contents.
config
Package config loads and validates the runner's settings from its environment.
Package config loads and validates the runner's settings from its environment.
crypto
Package crypto opens backups encrypted with age or GPG.
Package crypto opens backups encrypted with age or GPG.
docker
Package docker runs the runner's throwaway containers and removes everything they leave behind.
Package docker runs the runner's throwaway containers and removes everything they leave behind.
engine/postgres
Package postgres restores Postgres dumps into throwaway containers.
Package postgres restores Postgres dumps into throwaway containers.
job
Package job runs the backup test pipeline and builds its result.
Package job runs the backup test pipeline and builds its result.
source
Package source finds and downloads backups from S3-compatible storage.
Package source finds and downloads backups from S3-compatible storage.
version
Package version reports which build of the runner is running.
Package version reports which build of the runner is running.
Package test holds the runner's integration tests and fixture generators.
Package test holds the runner's integration tests and fixture generators.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL