ios
ios copied to clipboard
feat: add `restore-all` command
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.
This functionality is already there, but I forgot to document it. If you put * for the domain, it will restore everything.