Rust archive format and toolkit

Keep your files.
Keep their history.

ZAR creates fast, verifiable archives with commit-based updates, data deduplication, and optional authenticated encryption.

Rust Cross-platform MIT OR Apache-2.0 CLI, GUI, library, and bindings

Built for durable archives

ZAR combines efficient storage with a history you can inspect, verify, and restore.

Fast compression

Compress independent data blocks in parallel with Zstandard for responsive archive creation and extraction.

Versioned commits

Add file updates as commits, inspect earlier states, and compact history when older versions are no longer needed.

Deduplicated data

Repeated blocks can be shared within an archive commit, reducing redundant storage for similar data.

Authenticated encryption

Protect archive data with modern authenticated encryption and password-based key derivation.

Integrity and recovery

Verify archive checksums and use recovery scans to identify intact data around damaged regions.

Careful extraction

Validate paths and constrain restoration to the selected destination rather than trusting archive entries blindly.

Choose your interface

Use the same archive format from a terminal, desktop, application, or supported language runtime.

zarg — desktop manager

Browse archive contents and commits, manage files, and restore selected versions with a graphical interface.

zcopy — network copy

Transfer file trees between machines in compressed, optionally encrypted ZAR batches.

zarmcp — AI tools

Provide local MCP tools to inspect and manage archives with read-only and tool-allowlist modes.

Quick start

Install from a local checkout, then create and verify an archive. See the repository for packaged installers.

# Install zarc from a local checkout
cargo install --path zarlib-cli

# Create an archive and inspect it
zarc create backup.zar documents/ src/ notes.txt
zarc info -v backup.zar

# Add changes, verify, and restore
zarc add backup.zar documents/
zarc check backup.zar
zarc extract backup.zar --output ./restored/

Adding files does not automatically remove deleted paths. Use zarc remove for entries you want to delete. Encryption and other workflows are covered in the CLI guide.

Documentation and project links

Rust API documentation

Generated API documentation for the reusable Rust library.

ZAR file format

Framing, versions, integrity data, encryption, and archive structure.

Library developer guide

High-level operations and examples for application developers.

CLI guide

Command reference, configuration, encryption, conversion, and backup workflows.

Language bindings

Python, C, C++, Go, Java, C#, and WebAssembly / Node.js packages.

Benchmark reports

Compare archive size, compression, extraction, and resource usage across datasets.

crates.io · PyPI

Published Rust and Python packages.

Contributing · Changelog

Development setup, contribution guidance, and release history.