Repository navigation
v0.5.0-dev
Pre-release
Pre-release
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
unprivilegedbunkeruser. - 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: trueinbunker.yaml:list,verify,retentionandstatusread agent servers from S3.retention applyremoves snapshots left without a manifest by a run that died halfway, after 24 hours.pg_dumpruns 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.