zark is free software (Apache 2.0) that backs up an Ubuntu system installed on encrypted ZFS to an external drive, still encrypted, and rebuilds it on a new disk from a live USB, booting with Secure Boot on the stock Ubuntu boot chain. I am the author; zark is an independent project, not affiliated with Canonical. This post introduces version 2.1 and asks for discussion and testing.
Who it is for. People running Ubuntu 24.04 LTS or 26.04 LTS, installed with the installer’s encrypted ZFS layout, with Secure Boot on. It does not claim to support other releases or layouts.
What it does.
- Backups are raw ZFS sends, so the external drive holds encrypted data and never needs the keys.
- Each drive is tracked with a ZFS bookmark. A drive can stay unplugged for months and the laptop’s snapshot pruning no longer cuts it loose.
- Nothing on a drive is destroyed without a question, asked before the transfer starts.
- Every backup is checked on the drive before zark says it is safe to disconnect it.
- A backup is reported as completed only when every expected dataset reached the new point. Otherwise the result is BACKUP INCOMPLETE, the exit code is 1 and a table shows what happened to each dataset.
zark recover, run from an Ubuntu live USB, rebuilds the system on a new disk. On my test laptop it reached RECOVERY COMPLETE in 3m10s and in 3m25s; with more data, add the time to copy it. A daily backup of my laptop takes about two minutes.zark selftestchecks that the machine’s ZFS, kernel and tools behave the way zark relies on. Each release publishes the results from my test machine.
New in 2.1. zark writes its state to two status files that any program can read without root. zark monitor follows a running backup from another terminal, as any user. On Ubuntu 26.04 a GNOME Shell extension shows the same in the top bar and sends notifications when a backup is overdue or a backup drive is plugged in. It never starts or changes anything.
Install.
sudo add-apt-repository ppa:juanmitaboada/zark
sudo apt update
sudo apt install zark
# Ubuntu 26.04, GNOME extension:
sudo apt install gnome-shell-extension-zark
For a recovery there is no installed system, so zark also ships as a portable tarball on the releases page; it runs from an Ubuntu 26.04 live USB.
Warning. zark partitions disks and destroys pools when you ask it to. Read what zark touches first, and keep at least one backup that does not depend on zark.
Where it came from. After a laptop with soldered storage went through three motherboards, and after version 1 reported a backup as complete when one drive had stopped following one part of the system, I rebuilt it as 2.0. The account is here: https://www.juanmitaboada.com/my-laptop-lost-its-disk-three-times-so-i-wrote-zark/
What would help.
- Results of
zark selfteston your hardware: https://github.com/juanmitaboada/zark/issues/2 - Which USB-SATA bridge your backup drive uses and how it behaves: Tell us which USB-SATA bridge your backup drive uses · Issue #3 · juanmitaboada/zark · GitHub
- Support questions and general discussion: juanmitaboada/zark · Discussions · GitHub
Code and documentation: https://github.com/juanmitaboada/zark
Explainer video: https://youtu.be/RW7M9PC5les