Repository navigation
v0.2.0-dev
Pre-release
Pre-release
bunker v0.2.0-dev
Changes
Back up several servers at once
bunker backup run --allnow backs up up toconcurrencyservers in parallel (default 3).- Every server is attempted. One failing server no longer stops the rest.
- Live progress table in the terminal, plain prefixed log lines in cron and pipes.
- A summary at the end, and exit code
1if any server failed, so cron and monitors can alert on it. - Naming the same server twice backs it up once.
Retention
- New
bunker retention apply [server...]with a daily / weekly / monthly policy (defaults 7 / 4 / 6). - Preview by default; nothing is deleted without
--yes. - The newest snapshot is always kept, and incomplete snapshots are never deleted.
Snapshot listing
- New
bunker backup list [server...]shows every stored snapshot with its date, artifact count, size and status. Reads local storage only: no network, no key.
No more hanging on dead servers
ssh.connect_timeout(default10s): a server that never answers fails fast with a clear message instead of hanging the run. Also covers the SSH handshake.ssh.keepalive_interval(default15s): a server that freezes or drops off the network mid-backup is dropped after 3 unanswered checks (about a minute). Slow commands like a bigpg_dumpon a live server are never cut off.Ctrl-Cnow stops right away, even in the middle of a transfer, and deletes the partial snapshot.
Next-step hints
- After a command, bunker suggests the one command you most likely want next (for example,
verifyafter a backup). Shown only in a terminal; turn off with--no-hintsorBUNKER_NO_HINTS=1.
Config
All new fields are optional with defaults, so existing bunker.yaml files work unchanged:
concurrency: 3
retention:
daily: 7
weekly: 4
monthly: 6
servers:
my-vps:
ssh:
connect_timeout: 10s
keepalive_interval: 15sUpgrading
Replace the binary. No config changes required.
PRs ref
- Feat: add hint and configuration doc by @kushal1o1 in #6
- Feat: add rentention and snapshot list with testcases by @kushal1o1 in #8
- Feat:concurrency and timeouts with liveness check by @kushal1o1 in #12
Full Changelog: v0.1.0...v0.2.0-dev
What's Changed
- Feat: add hint and configuration doc by @kushal1o1 in #6
- Feat: add rentention and snapshot list with testcases by @kushal1o1 in #8
- Feat:concurrency and timeouts with liveness check by @kushal1o1 in #12
New Contributors
- @kushal1o1 made their first contribution in #6
Full Changelog: v0.1.0...v0.2.0-dev