How do I backup all the notes on my mac at once? [duplicate]

Solution 1:

You can use a third-party app called Notes Exporter to export all notes in one go. After granting access to the Notes data, the app exports each individual note as a separate text file in the location of your choosing.

The only limitation being that you'll need to re-import them one by one if you wish to use them on a new machine.

A better and much simpler approach, if you have the necessary storage space available would be to use iCloud to sync them to the new machine.

Note: No affiliation whatsoever to the developer of the app.

Solution 2:

I copied the three files NoteStore.sqlite, NoteStore.sqlite-shm, and NoteStore.sqlite-wal from ~/Library/Group Containers/group.com.apple.notes of one Mac to another and my notes appear there now. All my notes were there, albeit half a day out of sync.

Solution 3:

Another great third party app is Exporter. It exports as markdown and keeps both folders and attachments.

Solution 4:

What worked for me is:

  • Finder > Go > Go to Folder > paste this

    ~/Library/Group Containers/group.com.apple.notes
    
  • Select all files > Right click > Share > AirDrop to the device

  • Go to the same directory on the other device

  • Paste the files there (replace similar file name)

  • Quit and restart Notes App