Skip to content

ChronoBase v0.5.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 17:55
· 18 commits to main since this release

ChronoBase v0.5.0

ChronoBase is the native Rust rewrite of the ChronoBase v1 (Node.js) — a local-first backup manager for PostgreSQL and MongoDB. Zero cloud, tiny footprint, fast startup, and full compatibility with v1 chronobase-data.json files.

What's New in v0.5.0

Security & Reliability Fixes (Phase 0)

  • VPS Pull Agent URL Pinning (B-04): chronobase --agent now requires target DB URLs to match allowed_urls in chronobase-agent.json (or --allow-url <url>, with explicit --allow-any-url opt-in), preventing a leaked pairing key from pivoting to arbitrary hosts.
  • Compact Binary Chunk Framing (B-02): EncryptedResponse::FileChunk now uses raw binary framing (0x01 + bytes) instead of serde_json integer-array serialization, eliminating 3–4x frame expansion on large/binary BSON and SQL transfers.
  • Strict --config Fallback Guard (B-03): is_config_flag_unsupported now matches only precise unknown-option errors rather than any stderr containing "--config", preventing unintended password fallback into --uri= argv.
  • Retention Endpoint Keying (B-01): Retention planning and post-backup cleanup now key strictly by (BackupSourceKind, id) so VPS peer IDs and direct connection IDs never collide.
  • Atomic Backup Writes, Immediate Flush & Crash Sweeper (B-06, B-08): Dumps write to *.part, reject 0-byte outputs, atomically rename on success, flush chronobase-data.json immediately after recording, and sweep stale .part / .mongodump_cfg_* / .cb_vps_stage_* leftovers at startup.
  • Concurrency, Pre-Restore Safety, Wipe & Missed-Run Catch-Up (B-07, B-09, B-10, B-13): Added per-connection async backup locks, automatic pre-restore safety snapshots for SameDatabase restores, all-user-schema PostgreSQL wipe, startup missed-cron catch-up, and configurable per-connection timeouts (default raised to 1 hour).
  • UI & Docs Cleanup (B-05, B-11, B-12): Removed duplicate Slint callback registrations in ui/mod.rs, corrected Dashboard guide text, and aligned README.md key-derivation documentation with CBV1 implementation.

Downloads & Platform Support

Platform Package / Installer Notes
Windows x64 ChronoBase-windows-x64-setup.exe, ChronoBase-windows-x64.msi, ChronoBase-windows-x64-portable.zip NSIS setup installer, Enterprise MSI, and portable zip
Linux x86_64 ChronoBase-linux-x86_64.tar.gz, ChronoBase-linux-x86_64.deb X11 & Wayland via Slint winit
macOS Apple Silicon ChronoBase-macos-arm64.dmg, ChronoBase-macos-arm64.app.tar.gz Native aarch64-apple-darwin
macOS Intel ChronoBase-macos-x64.dmg, ChronoBase-macos-x64.app.tar.gz Cross-compiled (build-only, not tested on Intel hardware)

Verify Downloads (SHA256SUMS.txt)

Linux / macOS:

sha256sum -c SHA256SUMS.txt --ignore-missing

Windows (PowerShell):

Get-FileHash .\ChronoBase-windows-x64-setup.exe -Algorithm SHA256
Get-FileHash .\ChronoBase-windows-x64.msi -Algorithm SHA256
Get-FileHash .\ChronoBase-windows-x64-portable.zip -Algorithm SHA256

Platform Notes

  • Database CLI tools: pg_dump, psql, mongodump, mongorestore, and mongosh are not bundled. See the Setup section in README.md.
  • Where data lives: If chronobase-data.json exists next to the executable or in the current working directory, ChronoBase runs in portable mode; otherwise it uses your OS user data directory (override with --data-dir or CHRONOBASE_HOME).
  • Windows SmartScreen: Builds are unsigned; click More info -> Run anyway if prompted.
  • macOS Gatekeeper: Right-click -> Open, or run xattr -cr /Applications/ChronoBase.app.
  • Linux dependencies: Requires libfontconfig1, libxkbcommon0, libxkbcommon-x11-0, and libgl1 (for the default OpenGL renderer). Both X11 and Wayland are supported.
  • Headless / Auto-start: Run chronobase --headless from systemd, launchd, or Windows Task Scheduler to execute scheduled backups without opening a window.

Built with Slint.

Full Changelog: https://github.com/Subham-Maity/chronobase/blob/v0.5.0/CHANGELOG.md