Skip to content

Instantly share code, notes, and snippets.

@mrmanc
Last active December 16, 2015 04:49
Show Gist options
  • Save mrmanc/5380211 to your computer and use it in GitHub Desktop.
Save mrmanc/5380211 to your computer and use it in GitHub Desktop.
If, like me, you have deleted a note on your iPhone and want to restore it you can find it by searching the sqlite3 notes databases contained within your iOS backups. Be sure to do this before reconnecting the device, as this would erase the backup. You'll need - to be comfortable using the command line - to be using a mac (although this would w…
find ~/Library/Application\ Support/MobileSync/Backup/ -name ca3bc056d4da0bbf88b5fb3be254f3b7147e639c -exec sqlite3 {} "select zcontent from znotebody where zcontent like '%Music%';" \; | sed -e "s/<div>/\\
/g" -e "s/<[^>]*>//g" "-e s/&nbsp;/ /g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment