What is this?
This is a command-line python module that allows you to turn an encrypted Home Assistant backup (aka "Password Protected") into a non-encrypted backup. You might find this useful in situations such as:
- Your backup has been corrupted and you're just trying to get what you can out of it.
- You're trying to get just one or two files out of a backup without having to restore the whole thing.
Home Assistant backups are just compressed tar files but to encrypt them with a password it uses a non-standard encryption scheme. To the author's knowledge there is not way to decrypt these with standard compression/decompression tools which is why he wrote this little utility.
A note on reliability and expectations
This tool isn't sanctioned by the developers of Home Assistant and isn't updated in response to changes Home Assistant makes to the format of its backup files. This tool hacks apart a backup and then builds it back up, which makes it very sensitive to any changes the Home Assistant developers make to the backup file format.
It has been tested on backups created by Home Assistant version 2022.6.7. If you encounter an error using this tool please consider creating an issue for it on GitHub to notify the maintainer, you'll probably be helping many other users if you bring attention to an issue.
Installation
Make sure you have python 3 and pip installed on your system. Search around on Google for how to install them on your operating system. Then from the command line:
pip install decrypt-ha-backup
Usage
Download your backup from Home Assistant. Ensure you ahve at least twice the size of your backup available on your hard drive, and run:
python3 -m decrypt-ha-backup /path/to/your/backup.tar
You will be asked for the backup's password, after being processed the decrypted backup will be placed at /path/to/your/Decrypted backup.tar.
Optional Arguments
- --password secret_password Specify the the password instead of being asked
- --output_filename /path/to/output.tar Specify the output decrypted backup file name
Metadata
Release files for decrypt-ha-backup 2024.1.27.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| decrypt_ha_backup-2024.1.27.1.tar.gz | 6.9 kB | Without provenance | Details for decrypt_ha_backup-2024.1.27.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| decrypt_ha_backup-2024.1.27.1-py3-none-any.whl | Python 3 | none | any | Details for decrypt_ha_backup-2024.1.27.1-py3-none-any.whl |
Total release size: 14.5 kB
Release files / decrypt_ha_backup-2024.1.27.1.tar.gz
| Download URL | decrypt_ha_backup-2024.1.27.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fd865bef9d72ef0d4a71c2078dfc942838eb6237fc6f278c3a5986b9a27fd2e
|
|
BLAKE2b-256 checksum How to use checksums |
e1be2ff77c2fc7b84d4e12bb0dc1965fba8a1dcf60e8c54ae73e73ea36aea67b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.17
|
Release files / decrypt_ha_backup-2024.1.27.1-py3-none-any.whl
| Download URL | decrypt_ha_backup-2024.1.27.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e70cdb3eab2585a69b814c3b6b585246be477db62fbf5617a7001cd9f4a8c51
|
|
BLAKE2b-256 checksum How to use checksums |
f681121eee62f30e278f5fb271268e86d1fad8639c6bbdc256a350dd501de312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.17
|
Security for decrypt-ha-backup 2024.1.27.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.