Skip to content
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

Error during extraction: [Errno 22] Invalid argument (on Windows) #6

Open
rdaraujo opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@rdaraujo
Copy link

Hey,

Thanks for this amazing tool!

On Windows, it seems some characters (possibly :) in filename cause this error:

🏠 Home Assistant Backup Decryption Tool
=======================================
βœ… Found encryption key in home_assistant_backup_emergency_kit_17_01_2025_14_05.txt
πŸ“ Found 1 backup file(s) to process
πŸ“¦ Extracting automatic_backup_2025_1_3.tar...
πŸ”“ Decrypting automatic_backup_2025_1_3\homeassistant.tar.gz...
❌ Error during extraction: [Errno 22] Invalid argument: 'automatic_backup_2025_1_3\\homeassistant\\data\\.storage\\xiaomi_home\\miot_specs\\urn:miot-spec-v2:device:router:0000A036:xiaomi-r3g:1_en.dict'

⚠️  No files were successfully decrypted.
Please check that your backup files and emergency kit are correct.

Despite saying "No files were successfully decrypted.", it does decrypt some files.

This is the unencrypted tar content when opened with WinRAR:

Image

When extracted, WinRAR replaces : with _:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant