Expand description
Data operation commands for archive management.
This module provides commands for creating, inspecting, and analyzing Hexz
archives. Archives (.hxz files) are the primary storage format for snapshots,
containing compressed, deduplicated, and optionally encrypted data.
§Available Commands
pack: Create archives from raw disk images or memory dumpsbuild: Build archives from source directories with profilesinspect: Inspect archive metadata (header, index, compression stats)diff: Compare block hashes between two archivesls: List archives in a directory as a lineage treeanalyze: Run DCAM analysis to optimize CDC parameters (diagnostics)overlay: Inspect FUSE overlay files (diagnostics)
§Workflow Example
# Save two checkpoints then compare them
hexz diff base.hxz finetuned.hxz
# List all checkpoints in a directory as a lineage tree
hexz ls ./checkpoints/
# Inspect a single archive
hexz inspect snapshot.hxz --json§Archive Format
Archives consist of:
- Header: Magic bytes, version, flags, encryption metadata
- Index: B-tree or hash-based block index for fast lookups
- Data: Compressed, deduplicated blocks
- Signature: Optional Ed25519 signature (if signing enabled)
§Performance Considerations
- CDC vs Fixed: CDC provides better deduplication but slower packing
- Compression: LZ4 is faster, Zstandard has higher ratios
- Dictionary Training: Improves Zstandard compression by 10-30%
- Block Size: Larger blocks = less overhead, worse deduplication
Modules§
- analyze
- Analyze archive structure and optimize CDC parameters using DCAM.
- build
- Build archive from source with profile-based optimization.
- convert
- Convert external data formats into Hexz snapshots.
- diff
- Compare block hashes between two Hexz archives.
- inspect
- Inspect archive metadata and display snapshot information.
- ls
- List Hexz archives in a directory and render their lineage as a tree.
- overlay
- Inspect FUSE overlay files and identify modified blocks.
- pack
- Pack data into a Hexz archive.