Skip to content

v0.2.0

Choose a tag to compare

@blaipr blaipr released this 18 Aug 06:49
· 11 commits to main since this release

Two additions, both about getting data safely off the server — which was the one gap in v0.1.0's safety story: it could run a migration but not back up before one.

Added

  • db_dump (cdmon db:dump [file]) — export the whole database as SQL, schema and data, every table. Read-only, so it needs no CDMON_ALLOW_WRITES, the same standing as db_query. The backup to take before letting anything near db_execute. A response that comes back as an HTML page rather than SQL is raised, never returned — a backup that is secretly an error page is worse than none.
  • cdmon files:download <remote> <local> — stream a remote file to disk, byte for byte, any size. For backups and binaries, which files:read cannot handle: reading a JPEG through files:read decodes it as UTF-8 and corrupts it. Command line only, because the MCP tools never take a local filesystem path.

Both verified against a live cdmon site: a 31-table dump that ends on the proper trailer, and a 126 KB JPEG downloaded with its magic bytes intact.

No breaking changes. See the CHANGELOG and docs/tools.md.