How to export/backup Notes in macOS in one go I have a lot of Notes on my machine which I don't want to loose. It's not logical to export them one by one. Is there any way to export them in one go, which would make me either use them on my new 

I learned that I could backup ~/Library/Group Containers/group.com.apple.notes but I am not really sure if this would be helpful. This is what I get as for this directory.

$ du -sh ./*
4.0K    ./Library
256K    ./NoteStore.sqlite
 32K    ./NoteStore.sqlite-shm
3.0M    ./NoteStore.sqlite-wal


I am running macOS Mojave.
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.