-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to decrypt backups #1
Comments
Its possible HA changed something about the backup format, I basically have to copy-paste their code to keep things updated. That being said, I just tried with HA latest (2023.09.2) and things seemed to work. What error are you getting when you try to decrypt? |
hey sorry about the delay, here's the stacktrace:
|
It looks like its failing to open the main tar file, before it even gets to the decryption step. Home Assistant's backups are made out of several smaller encrypted files inside one unencrypted file (its a weird format). Because its failing to open the single, unencrypted tar file its most likely the file is corrupt. Options are pretty limited if thats the case, the tarfile format doesn't handle corruption very well. The most common cause of corruption is damaged SD cards. You might try opening it up in a standard tool like 7zip. It should be able to open homeassistant.tar.gz, so if it complains about the file then its definitely corruption. I've also heard some people have had success with tools like this, though I've never tried it myself. |
i'll give that a go. It might be corrupted, but I doubt it. If i create a backup w/o a password, i'm able to open things without issues. Also, i'm running HA off of an SSD. |
If you're able to get some or all the files out of it, I can give some instructions about how to "reconstruct" it back into a format this tool can decrypt. |
I'm having the same issue, I'm unable to decrypt my backups with the "invalid header" error. My password contains special characters. |
In my case it fixed this: sabeechen#1. Apparently the self.filename variable contains a local path (e.g. ./homeassistant.tar.gz) which causes issues when looking for this member in the tar file (which contains just filenames (e.g. homeassistant.tar.gz). I have NOT tested it in other OSs
Try this: #7 |
Thanks a lot this fixed the issue 👍 |
Hey, not sure if its an issue on my end or not, but i'm unable to decrypt home assistant backups using this tool.
It used to work fine.
I'm currently on Home Assistant Core version 2023.8.4, and if its helpful I'm also running Home Assistant Operating System 10.5
The text was updated successfully, but these errors were encountered: