problame / zquash

zquash is a PoC for squashing adjacent incremental ZFS send streams WITHOUT USING ZFS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zquash

zquash is a tool for squashing adjacent incremental ZFS send streams without using ZFS.

The code base is nothing but a proof-of-concept, very hacky, and not suitable for production.

zquash was written by Anton Schirg and Christian Schwarz in Feb-Apr 2019 based on ZFS on Linux 0.8-rc?. It was udpated to work with 0.8 release in Dec 2019.

Limitations

  • Only works with ZoL 0.8 encrypted streams (-w flag, see demo.bash)
  • Only tested for adjacent incremental streams, not for squashing a full + incremental stream

Building

Build zquash (by example on Ubuntu 19.10):

# install rust stable (tested on 1.39), e.g. using rustup.rs
apt install clang libzfslinux-dev libnvpair1linux
# clone this repo, change to root of repo
cargo build

Demo

Read & understand the shell script ./demo.bash, then run it as root.

About

zquash is a PoC for squashing adjacent incremental ZFS send streams WITHOUT USING ZFS


Languages

Language:Rust 86.5%Language:C 11.8%Language:Shell 1.7%