Fix script to work with backups from HA version 2025.7.1+#4
Open
sicada wants to merge 1 commit into
Open
Conversation
…25.7.1 and also to print out some helpful info
degerrit
approved these changes
Nov 14, 2025
degerrit
left a comment
There was a problem hiding this comment.
Thanks for the PR - this addresses the same problems I ran into and works for me on 2025.10 too!
I have a separate issue though, which I would address in my own PR (for my specific backup (>6GB sqlite DB) it only works with --compressed, indicating an issue with gzip ISIZE/footer or something).
| assert self._manifest['version'] == 2, 'Only manifest version 2 is supported.' | ||
|
|
||
| if self._manifest['protected']: | ||
| assert self._manifest['crypto'] == 'aes128', 'Only AES-128 encryption is supported.' |
There was a problem hiding this comment.
Will this break restoring backups of older versions?
Author
There was a problem hiding this comment.
I don't know. Unfortunately I don't have any backups that are old enough to test with.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the script to work with encrypted backup archives from HomeAssistant version 2025.7.1, and presumably newer versions as well (though I have not tested on newer versions).
I've also added a couple lines to print out some helpful info from the manifest (backup.json) since that's what helped me understand how to update this script in the first place.
Example output from the script based on this PR: