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

Restore command asks for password although none specified during backup #1308

Open
Ph-St opened this issue Dec 12, 2024 · 1 comment
Open

Comments

@Ph-St
Copy link

Ph-St commented Dec 12, 2024

Test environment

  • Manjaro 24.2.0, pymobiledevice3 4.16.1
  • iPhone12,8, ios 17.6.1

Describe the bug
The restore command reports that a backup that is encrypted and that I should supply a password. However, during backup, I didn't ask the backup to be encrypted and did not specify a password. I'm not sure whether the backup was actually encrypted or whether it is not encrypted but pymobiledevice3 asks for a password nevertheless.

To Reproduce
Steps to reproduce the behavior:

  1. I ran
    pymobiledevice3 backup2 backup --full iphone_backup/
    it finished without error message.
  2. I ran
    pymobiledevice3 backup2 restore iphone_backup/
    and the response was
    pymobiledevice3.services.mobilebackup2[2812524] ERROR Backup is encrypted, please supply password.

Expected behavior
Since no encryption was specified or password supplied during backup, I expected that the backup would not be encrypted. In case it is actually not encrypted, I expected that the program would be able to restore the backup without a password.

Additional context
There is another weird behavior. If I run
pymobiledevice3 backup2 restore iphone_backup --password
the response is
Error: Option '--password' requires an argument.
So I tried to make another backup with a password and ran
pymobiledevice3 backup2 backup --full iphone_backup/ --password my_secrect_password
But the response to this was
Error: No such option: --password

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@doronz88
Copy link
Owner

Only the restore option requires a password, which can be an empty string. For creating a backup with password use the encryption subcommand which changes this setting globally and forces all created backups to have a password

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

2 participants