How can I backup my Icloud synced notes locally?

I have both a macbook running 11.1 Big Sur and iPhone running iOS 14.

I have lots of notes that I'd like to locally backup just in case. Ideally I can export them to a folder so I’m sure they are backed up clearly.

Is this possible without third party apps?


Solution 1:

The format of the Apple Notes data is undocumented and liable to change with macOS updates. It is not safe to rely on copying a single file elsewhere particularly where this contains Apple Notes's iCloud data.

If you want to continue using Apple Notes there is little choice but to rely on Apple's iCloud and Time Machine to correctly store and backup your notes.

But if you want to take control of your notes data I suggest you use a different app. This is what I have done because I did want to take control of my notes.

I have exported all my notes out of Apple Notes to markdown files using Exporter (also jmh's recommendation) and now use Typora to edit my notes knowing that each note is now a single text file and, in some cases, images.

So that I can access my notes on my other Mac, I store all the markdown format notes in my iCloud Drive. But not entirely trusting iCloud, I also copy all the notes to a local folder for which I can control backups.

Solution 2:

The locally stored notes are stored in a database at ~/Library/Group Containers/group.com.apple.notes/ while iCloud notes are stored here: ~/Library/Containers/com.apple.Notes/

How to access the directories are described in this OXDaily link. https://osxdaily.com/2020/01/15/where-notes-stored-locally-mac/

There is a free app called Exporter, available from the AppStore, which will extract each note and save it as a markdown file. MacDown and other apps will display the notes on the screen.

There is also a way to export all your Notes as pdfs using a script. I don't know much about this but found it on the internet. The script and a description are given at https://macmost.com/export-all-of-the-notes-on-your-mac-using-a-script.html