15

I have deleted an information in a note I need to recover. The note is purely local (not synched in the cloud or on any other device).

I'm using Mac OS X El Capitan V10.11.3 and the Apple app "Notes" Version 4.2 (549.10.1).

I do have several Time Machine backups available.

I did find several solutions on the internet but they seems to apply to older version of the Notes app.

If I open the Time Machine backup and go to:

/Users/<my username>/Library/Containers/com.apple.Notes/Data/Library
  • The subfolder "Notes" has an old databases "NotesV6.storedata" but not modified since my upgrade to El Capitan so it's an old version.

Note that this database could contain the info I'm looking for so a solution to my immediate issue may be to find a way to read it...

  • The subfolder CoreData/ExternalRecords/NotesV4/6003A0A6.....401 contains many subfolders, among them the ICNote/_records/O/ that seems to contains the notes, but this is all 0 byte size files that, when looked at in finder contains the current version of my notes, so it seems they are some kind of pointer to the notes location rather than a backup of the notes. (In the console they are not symlinks.)

Doing a grep with keyword that are presents in the notes did not help.

So the question is: which files should I restore from Time Machine to recover my notes?

13

Empirically, it seems that the 3 items in
~/Library/Group Containers/group.com.apple.notes/
are updated as a Note is changed, whereas those in
~/Library/Containers/com.apple.Notes/Data/Library/Notes/
are only updated periodically [I cannot find how to trigger those to update, I thought making a new Note may do it, but it appears not.]

My research was actually aided by my old faithful - EasyFind (freeware, no affiliation) - which I set hunting for a keyword in one of my existing Notes. It took quite some time, but found it in the end.

| improve this answer | |
  • 7
    I confirmed that closing the Notes app, then moving out the three NoteSotre.sqlite.* files from ~/Library/Group Containers/group.com.apple.notes/, and putting the files from the backup in their place then opening Notes did the trick. Thanks a lot. – JFL Mar 1 '16 at 16:36
  • Can confirm similar migration from Sierra (NotesV6) to High Sierra (NotesV7). Had to re-enable iCloud accounts after transfer. – setempler Dec 11 '17 at 1:04
  • 1
    you just saved my life! – holographix Mar 20 '18 at 22:32
  • Thank you. I restored those files from a TimeMachine backup. – Gunnar Cheng Apr 19 at 14:14

You must log in to answer this question.

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