Skip to content

v0.2.0-dev

Pre-release
Pre-release

Choose a tag to compare

@kushal1o1 kushal1o1 released this 19 Oct 09:59
· 48 commits to main since this release
d5c813c

bunker v0.2.0-dev

Changes

Back up several servers at once

  • bunker backup run --all now backs up up to concurrency servers 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 1 if 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 (default 10s): a server that never answers fails fast with a clear message instead of hanging the run. Also covers the SSH handshake.
  • ssh.keepalive_interval (default 15s): a server that freezes or drops off the network mid-backup is dropped after 3 unanswered checks (about a minute). Slow commands like a big pg_dump on a live server are never cut off.
  • Ctrl-C now 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, verify after a backup). Shown only in a terminal; turn off with --no-hints or BUNKER_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: 15s

Upgrading

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

Full Changelog: v0.1.0...v0.2.0-dev