dunhamsteve / ios

Utility to extract files and keychain information from iOS backups
Other
123 stars 28 forks source link

feat: add `restore-all` command #11

Open flw-cn opened 4 years ago

flw-cn commented 4 years ago

Thanks to @dunhamsteve for this tool, it helped me solve my problem today. But when I had a little trouble using it I got this PR after trying to solve it.

Since I don't understand the iOS backup mechanism, when I need to irestore restore xxx out, I don't really know what domain name I want to work with. For that reason, when I try to use irestore list to find my target, I unfortunately get a long list, which makes it difficult for me.

So I'm going to restore all the domains and identify my target by their contents. So I tried the xargs command, however, my backup was an encrypted backup so I had to repeatedly enter the password many times, and irestore consumed so much time in the frequent decryption process that I finally gave up and tried to fix its source code.

Fortunately, irestore's source code is very clear and easy to read, and I quickly implemented a restore-all command, which successfully freed all the backup files. I thought someone else might have a similar problem, so I thought I'd submit this PR to help others.

dunhamsteve commented 4 years ago

This functionality is already there, but I forgot to document it. If you put * for the domain, it will restore everything.