Example reads encrypted backup on stdin and decrypts on the fly for you to interact with standard tar utility.
mkdir some-addon
tar -xOf your-backup.tar file.tar.gz | \
hassio-tar | \
tar -xzC some-addon
Why another utility?
I realize a lot of people have created python utilities which interact with the encrypted backups copying Home Assistant python code.
I wanted a simple and near-pure bash utility which behaves just like tar. The purpose is to just decrypt the tar for you and then you can use standard tar command to do whatever you want.
Added statically compiled binaries which can be used instead of the shell script.
Versioned GitHub releases.
Continued support for the shell script in case that’s your preference.
The pre-compiled binaries is now recommended instead of the shell script because they have no dependencies, decrypt in-memory, and performs a SecureTar integrity check. Support for Linux, Mac, and Windows for multiple CPU architectures.
Hi, do you have somewhere a compiled version for x64/amd64 windows system ?
I just tried to import (within HA 2025.12.3) a encrypted backup snapshot from march 2025 (Core 2025.3.3) that is stored on a NAS. So i pointed to the file with the HA Backup Import feature and…NOPE ! It does not work at all… No error message, no file imported, nothing… Buggy function…
So i need to find something that works to import just a few files from this encrypted backup.
Thanks,
Eddy