0

I have been using Anki for studying. Somehow, all its files disappeared from my MacBook Pro (either that or Migration Assistant failed to copy them from the old machine). I can't find them in Time Machine, either!

But they are still on the iPad. The iPad app does its own backups periodically, but they do not include images and audio. Is there a way to get at them in the iPad backups?

2
  • I use iExplorer to access files on my iPad/iPhone I usually cannot get to by other means. There is a free trial I think. If it does work, consider purchasing the app for future use. Note: no financial or other connection to Macroplant LLC.
    – IconDaemon
    Oct 22, 2021 at 12:11
  • I used that at one time to recover audio files. Turned out nearly useless: either IOS or iExplorer changed all the filenames to four capital letters, no extension. Only way to really restore would be to listen to each one and hope you remember the name. Although some of them would have clues in the ID3v2 tags. I figured out how to retrieve tham from the backups, but it's a messy process. I'll write it up and post it soon.
    – WGroleau
    Oct 22, 2021 at 15:49

1 Answer 1

0

The following instructions work on macOS 11.6 and other recent versions (see caveats at end):

In Finder, with the iPad (or iPhone) attached, select the device.

Click "Manage Backups"

In the selected backup directory, open "Manifest.db" in sqlite3 or in a GUI SQLite browser you've installed from the App Store.

select distinct domain from Files; and find the domain for the app you want to get files from.

Get a list of all that app’s files with

select fileID, relativePath 
from Files 
where "domain" is "AppDomain";

(substitute the domain you identified)

The first column, fileID, is the name of the backed up file in a subdirectory of the backup.  Its parent directory is named by the first two characters of the fileID.  The second column is the filename on the iPad or iPhone.

Edit the results into a script to get the files where you want them on your laptop.  Or if you only want a few files, use the results to navigate in Finder.

Caveats:

  • If you don't understand the above, you might not want to tamper with the mobile backup. I do understand it, and yet I still trashed mine and had to restore it from Time Machine.
  • Something similar should work in other versions of macOS.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .