- Install Apple Dev tools if they're not already on your computer.
- Copy this to your Mac, name it dbextract, make it executable, and add it to your path somewhere.
- Navigate to ~/Library/Application Support/MobileSync/Backup.
- List all folders chronologically, i.e. ls -lt
- Go into the newest folder and run dbextract against the mdbackup files in that folder: i.e. dbextract *.mdbackup
- Examine the extracted database files. Open them if needed in sqlite3 and .dump their contents. If they have your content, great. If not, go to the next folder in chronological order and repeat.
- Once you find the notes.db file you're looking for, scp or sftp it over to your iPhone and place it into /var/root/Library/Notes.
Mar 5, 2008
HowTo: Restoring your iPhone Notes from a Mac
If your notes got wiped during a recent firmware upgrade, here are some steps that may help you recover them. Warning: Hacking expertise for this exercise is rated "high" to "severe".