You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do you backup Notes?

I really like iCloud and how it keeps my iPhone and Macs in sync, but I have one question. How do you back up Notes?


In Calendar and Contacts, there are export options so I can export and back data up in case iCloud goes wonky, but I don't see such an option in Notes.


Thanks for any suggestions.

iMac 24' flat panel, Mac OS X (10.6.7), 4 GB RAM, 50 GB HD

Posted on Jul 29, 2012 1:53 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 21, 2012 5:29 AM

Sorry, but unless you have old itunes and old lion mac os x, these are just remnants of the past. they won't get re-synced or updated as you use notes. At this point there is unfortunately no way to backup your notes that are on icloud. No way.


It's time to write to Apple a feedback requesting this essential option.


... many of us have hundreds of notes not willing to be lost. We need offline backup/restore.

73 replies

Jan 20, 2013 6:38 PM in response to Barney-15E

Yes I am sure. The SQLite database is the store of record.


That said, for anyting "on the network" (i.e in iCloud), backing up and restoring the database isn't that useful because iCloud is considered the "store of record" so if you delete stuff and it syncs to iCloud, then restoring the SQLite database won't do much good: The next time the machine goes online the iCloud version of things (i.e. deletes) will bowl over the local copies.

Jan 20, 2013 6:51 PM in response to William Lloyd

FYI if you want to see EVERYTHING in notes you could go to that directory and type "sqlite3 NotesV1.storedata .dump" and it will spew it all out as ASCII. Do a redirect (i.e. sqlite3 NotesV1.storedata .dump > notesbackup.txt" and you have a backup. You could then figure out the SQLite command to re-load that backup if you ever need it (this is left as an exercise for the reader ;-)

Jan 20, 2013 7:40 PM in response to William Lloyd

Right, that's what has happened to me twice now. Once the note seemed to just delete itself on one device and I rushed upstairs to get it off the other device and poof, right in front of my eyes, it was deleted via iCloud. This time, though, I did it because I forgot that my son's iPhone (my old one) was still synced with my new phone and iPad and I was deleting notes from his and it then deleted them off of mine before I realized that was happening.


I don't know SQL or ASCII. I am going to see if I can follow what you are saying in Time Machine.

Mar 3, 2013 3:04 AM in response to Jeff Kennedy1

Hey there for everyone. I had the same problem, I wanted to restore my notes from my Time Machine Backup.


So its quite easy. You just open:


~/Library/Containers/com.apple.notes/Data/Library/CoreData/ExternalRecords/


and the same path but on your backup. Then you copy the Folder with the large number onto your hard disk.


And the last thing you have to do is to open:


~/Library/Containers/com.apple.notes/Data/Library/Notes/


and replace the SQlite databases with the ones of your Timemachine Backup.


Im not using iCloud so I dont know if this will work out when you sycn the next time. For me its okay 🙂

Apr 5, 2013 8:37 AM in response to Jeff Kennedy1

This shell-command tells sqlite to write all your notes to a single text/html file:


echo 'SELECT * FROM ZNOTEBODY;' | sqlite3 ~/Library/Containers/com.apple.Notes/Data/Library/Notes/NotesV1.storedata > ~/notes.html


As others pointed out, the notes reside in ~/Library/Containers/com.apple.Notes/Data/Library/Notes/ . If you want to restore your notes with Timemachine, you have to restore the whole directory, containing of NotesV1.storedata, NotesV1.storedata-shm and NotesV1.storedata-wal (these files seem to depend on each other). You can also copy this directory from Timemachine to anywhere on your filesystem and extract the notes with sqlite.


For example copy the directory to your desktop and run


echo 'SELECT * FROM ZNOTEBODY;' | sqlite3 ~/Desktop/Notes/NotesV1.storedata > ~/Desktop/notes.html


Works great for me!

Apr 7, 2013 1:16 PM in response to Kjell Peterson

Kjell,


I haven't tried your instructions, but in the name of the whole community and people who care and use notes for hundreds of their notes (as it should be as it's the only app that supports the built-in iphone/ipad spotlight function and Siri) I heartily thank you.


Thank you for sharing your hard earned knowledge. I'll try it and sleep better. 😉


Best,

Roman

Apr 7, 2013 1:22 PM in response to Kjell Peterson

Alright: couldn't resist and tried it.


Yes, my current iCloud stored notes were saved in a huge, badly readable and non formatted HTML file. At least the text would have been backed up in this case so the loss would be less dramatic. Still, no workable restore at this point.


****, APPLE, why don't you let us just drag and drop those notes to a folder, zip them up, and when needed drag them back to the notes.app?!


[sorry for the rant, i'm so %$#$%@]

Apr 7, 2013 2:05 PM in response to Roman1

Notes are stored on your computer (just like contacts, calendars, mail etc) and are backed up by any local backup system, such as Time Machine.


Roman1 wrote:


Nice thought. Please try, before you post. Time machine, with the advent and intro of iCloud has lost a lot of functionality.

Attribution please.

Apr 10, 2013 5:07 AM in response to Roman1

Of course it would be easier to restore single notes if they were plain text files. But the format the notes are stored in is not as proprietary and obscure as I first thought. (Only the file-extension "storedata" is.) Actually it's just a sqlite-database that can be read and modified quite easily, as I found out now: There's a Firefox-extension called SQLite Manager that you can use to browse all of your notes - even ones that where previously deleted! Although I don't know for how long deleted notes are kept (and if all of them are kept), I can confirm that I saw one in there that I had deleted weeks ago.


I hope that helps!

Jun 22, 2013 11:10 AM in response to Surfalien

I just found your post today...


There are a few things about this program I'd like changed, but it does "exactly" what I wanted done (a solid backup of the information on my IPHONE to my PC)


Of course you already knew this, but I wanted to thank you for the post. I'm really irritated with Apple for making this so difficult for me and irritating for so long. I bought the program and it allows "anything" to be saved locally. I haven't explored all the options, but I have the backup running now. I don't see a restore yet, but again, I do have the data.


Thanks !

Jul 2, 2013 12:20 PM in response to Roman1

This happened to me only today. Mild panic ensued. iMac, iPhone, iPad = wiped. Grabbed my laptop killed the wireless and cut and pasted into a document (and then subsequently pasted back). Close run thing. Worrying.


Notes needs a Trash folder or something.


Failing that a discrete backup / export option.

Jul 13, 2013 4:51 AM in response to Hugh

When I bought my iPhone 5 , the one thing I said was important to me ,having had the iPhone 4 was the ability to back up notes , everyone from 02 to the Apple store told me I could automatically back it all up through iTunes .

what a load of rubbish you can't .

Hopefully ill find myself a phone that does , when I do ill tell you all the one to get .

Or better still iPhone need to do something about this

Oct 9, 2013 5:01 PM in response to Owenpooler

As Kjell Peterson and others posted some time ago, it's possible to generate a html file of all the records.


Here are another command line that writes the complete notes, with titles, to a file "notes.html" in the home directory of the user.


sqlite3 ~/Library/Containers/com.apple.Notes/Data/Library/Notes/NotesV1.storedata 'select znote.ztitle, znotebody.zhtmlstring from znote, znotebody where znotebody.znote=znote.z_pk' > ~/notes.html

And here another command that generate a complete backup of the sqlite db. In this command it's necessary to use the complete pathname of the file.

sqlite3 ~/Library/Containers/com.apple.Notes/Data/Library/Notes/NotesV1.storedata '.backup /users/username/notesbackup2a.sqlite'

Both commands works for Mountain Lion.

If Apple changes the default location of Notes files...

How do you backup Notes?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.