nattviken

hZbackup — verified backup of cold archives

Backup tools compress and deduplicate generically, chunk by chunk. For cold trees — directories that no longer change, which is most of what a long-lived disk holds — a content-aware archiver does better, because it sees the whole tree at once.

hZbackup packs such trees into hyperZip archives, proves that each archive restores bit for bit, and then lets restic, borg or a plain copy back up one file instead of a hundred thousand small ones.

Measured against restic

A real personal archive of 192.6 GiB and 193,158 files, measured against restic at its strongest setting, --compression max:

contentsamplerestichZhZ vs restic
Office documents and PDF401 MiB368 MiB166 MiB−54.9 %
JSON, HTML, CSV, LevelDB301 MiB34 MiB22 MiB−33.7 %
Email (mbox)512 MiB292 MiB237 MiB−18.8 %
Photos (JPEG)800 MiB794 MiB784 MiB−1.2 %
Video (MP4)812 MiB812 MiB812 MiB0 %

Weighted by that archive's file census, the five classes cover 89.9 % of it and come to 6.1 percentage points, about 11.8 GiB less to store and move, of which the mail alone is 4.3 GiB. Video gains nothing, because the video codec already did the work, and the table says so. Every row is produced by a script in the repo and regenerated rather than edited by hand.

What it guarantees

The project is a work in progress and the code is not yet published.

← All projects