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. SSH pull mode is unchanged and stays the default.
Agent mode
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.
Agent mode is for Linux servers. The laptop side works on Linux, macOS and
Windows.
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, pgpass, paths and S3 without backing up
bunker agent install
writes the systemd service and timer, or /etc/cron.d/bunker-agent with --docker; --at sets the time, --dry-run shows the files
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.
bunker status checks servers in parallel and prints each row as soon as
it is ready. One server failing to list no longer hides the others.
retention apply removes snapshots left without a manifest by a run that
died halfway, after 24 hours.
Release binaries are fully static and run on any Linux, including Alpine.
Container image
docker pull ghcr.io/kushal1o1/bunker:v0.5.0
For linux/amd64 and linux/arm64. Includes pg_dump 18 and tar, and
runs as uid 10001. latest now points to this release.
Top comments (1)
bunker 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. SSH pull mode is unchanged and stays the default.
Agent mode
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:
bunkeruser.Agent mode is for Linux servers. The laptop side works on Linux, macOS and
Windows.
New commands
bunker agent runbunker agent checkbunker agent install/etc/cron.d/bunker-agentwith--docker;--atsets the time,--dry-runshows the filesbunker agent uninstallbunker statusOther changes
servers.<name>.agent: trueinbunker.yaml:list,verify,retentionandstatusread agent servers from S3.bunker statuschecks servers in parallel and prints each row as soon as it is ready. One server failing to list no longer hides the others.retention applyremoves snapshots left without a manifest by a run that died halfway, after 24 hours.Container image
For
linux/amd64andlinux/arm64. Includespg_dump18 andtar, andruns as uid 10001.
latestnow points to this release.Getting started for agents
See Agent mode .
Upgrading from v0.4.0
Nothing to change. Existing
bunker.yamlfiles and snapshots work as before.