>_ DB Backup CLI v0.1.1 Download
MIT Java 21 Spring Boot 3.3 PostgreSQL 13+

Production-grade PostgreSQL backups from your terminal.

A Spring Shell CLI that runs pg_dump through a 5-step Spring Batch pipeline. Gzipped dumps, named connection profiles, JSON-structured logs, and a built-in job history — all in one binary.

// features

Built like a service. Runs like a script.

Every backup goes through the same observable pipeline. No surprises, no ad-hoc shell wrappers.

Spring Batch pipeline

A deterministic 5-step flow: validate → version-check → dump → compress → persist. Restartable, observable, scriptable.

Gzip out of the box

Every dump is streamed through gzip so backups land 5–10× smaller without an extra command in your cron.

Named connection profiles

Define dev, staging, prod in application.yml. No flag soup at the prompt.

JSON structured logs

Ship straight to ELK, Datadog or Loki. Each step emits a structured record — easy to alert on, easy to grep.

Embedded job history

An embedded H2 store records every run with status, duration, size, and exit code. Query past jobs from the shell.

PostgreSQL 13+

Built on pg_dump 17+. MySQL / MariaDB land in a future phase — open an issue with your use case.

// install

Pick your install path.

Four ways to get DB Backup CLI running. The native binary is fastest to start; the .jar is the smallest universal option.

Pre-built native binary via GraalVM. Pick your OS:

Linux · x86_64 · glibc 2.31+
curl -LO https://github.com/jircik/DB-Backup-CLI/releases/download/v0.1.1/db-backup-cli
chmod +x db-backup-cli
./db-backup-cli

No JVM required. Cold-start under ~50 ms thanks to GraalVM native-image. On macOS? — a native macOS binary isn't published yet. All v0.1.1 assets ↗

// quickstart

Your first backup in 60 seconds.

Once installed, define a profile and run two commands.

1 Add a profile to application.yml
db-backup:
  profiles:
    dev:
      host:     localhost
      port:     5432
      database: app
      user:     postgres
      password: ${PG_PASS}
2 Verify connectivity
db-backup-cli> test-connection \
  --profile dev

 connected to
  postgres://localhost:5432
  (PostgreSQL 16.2)
3 Run a backup
db-backup-cli> backup \
  --profile dev \
  --output ./backups

 → ./backups/
  dev-2026-05-11T1430.sql.gz

Ready to ditch the cron-and-shell-script combo?

DB Backup CLI is open-source, MIT-licensed, and v0.1.1 is out today.