Skip to content

v0.5.0-dev

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:15
· 9 commits to main since this release
cf9546c

bunker v0.5.0-dev: agent mode

Don't Run this release on Prod

This is a development release for testing. Feedback welcome before v0.5.0.

Agent mode

bunker can now run on the server itself and push backups straight to S3. No machine of yours has to be on, and nothing logs in to the server.

The agent holds only the age public key and an upload-only S3 key, so a compromised server can neither read nor delete old backups. Verify, retention and restore stay on your laptop.

Two ways to run it:

  • Host agent: a systemd timer on a plain server, running as an
    unprivileged bunker user.
  • Container agent: one container next to your Docker stacks. Covers databases in containers and named volumes without root, capabilities or the Docker socket.

New commands

Command What it does
bunker agent run one backup of this machine to S3
bunker agent check checks config, pg_dump, database access, paths and S3 without uploading
bunker agent install writes the systemd service and timer, or /etc/cron.d/bunker-agent with --docker
bunker agent uninstall removes them; config and snapshots stay
bunker status each server's newest snapshot and its agent's last run; exits 1 when one needs attention

Other changes

  • servers.<name>.agent: true in bunker.yaml: list, verify,retention and status read agent servers from S3.
  • retention apply removes snapshots left without a manifest by a run that died halfway, after 24 hours.
  • pg_dump runs with -w.
  • Release binaries are now fully static and run on any Linux, including Alpine.

Container image

docker pull ghcr.io/kushal1o1/bunker:v0.5.0-dev

For linux/amd64 and linux/arm64. Includes pg_dump 18 and tar, and
runs as uid 10001. latest moves only on stable releases.

Getting started

See Agent mode and the ready-made files in examples/agent/.

Notes

  • This is a development release. SSH pull mode is unchanged and stays the
    default.
  • Postgres and files are supported in agent mode.