Show HN: ZAR – A new archive format with history, deduplication, encryption gith...

@best

Show HN: ZAR – A new archive format with history, deduplication, encryption github.com · 11 points · 3 comments · HN thread

TL;DR ZAR is a new open-source archive format and toolset written in Rust, positioned as a replacement for tar, zip and 7z. It offers parallel zstd compression, random access to single files, commit-based history with compaction via join, deduplication, optional authenticated encryption, and a CLI, desktop GUI, FUSE mount, network copy tool and MCP server. The README reports benchmarks where ZAR creates archives much faster than 7z, though 7z produces smaller output on the Linux source tree.

  • Archives are a container header followed by commits; add records new versions, remove records tombstones, and earlier states stay readable until commits are joined or removed.
  • join compacts a contiguous commit range into one commit, keeping only the final state and discarding intermediate history.
  • Benchmark on a 525 MiB Linux 4.0.1 tree (unencrypted, hot cache): ZAR creation 0.98–1.03 s versus 7z 26.86–27.61 s, but 7z output is 81.1 MiB versus ZAR's 115.3 MiB.
  • Encryption uses AES-256-GCM or ChaCha20-Poly1305 with Argon2id, with flexible scope and per-commit passwords; the project states no independent security audit exists.
  • Imports ZIP, 7z, RAR, ISO, TAR and gzip, and includes zarmount for read-only FUSE mounting on Linux.
  • Language bindings cover Python, C, C++, Go, Java, C#, Lua and WASI; zcopy is a one-way copy tool that does not propagate deletions.

Discussion The thread is very small, with three comments. The mood is mildly positive and practical: one commenter focuses on distribution and adoption, another compares the project to restic's local storage mode, and a third welcomes parallel compression in archivers. No one engages deeply with the format, benchmarks or security claims.

  • Needs packaging in many distributions to gain adoption (some): The top comment argues that ZAR will not be adopted unless it reaches as many Linux distributions as possible. It is a general adoption point rather than a judgment of the design.
  • Similar to restic's local mode but as one file (some): One commenter sees ZAR as resembling restic's local storage mode, with the difference that the whole archive is a single file instead of a repository directory.
  • Parallel compression in archivers is highly desirable (a few): A commenter welcomes parallel and possibly GPU-accelerated compression in archive tools, which is the feature ZAR emphasizes.

#archiveFormats #rust #compression #encryption #backup #showHN