mix lei.export_cache (LowEndInsight v0.9.1)

Copy Markdown View Source

Exports cached LowEndInsight analysis results to a portable bundle containing a SQLite database, gzipped JSON Lines, a manifest, and SHA-256 checksums.

Usage

mix lei.export_cache [--output <dir>]

Options

  • --output - Base directory for the export bundle (default: system tmp dir)

Output Structure

lei-cache-YYYY-MM-DD/
 manifest.json
 cache.db          # SQLite (queryable)
 cache.jsonl.gz    # JSON Lines (streaming)
 checksums.sha256

Examples

mix lei.export_cache
mix lei.export_cache --output /path/to/exports

Scheduling

For nightly exports, schedule via cron:

0 2 * * * cd /path/to/lei && mix lei.export_cache --output /exports