11

I was making extensive use of Notes on a loaner laptop for work. I just got my permanent machine, and after updating from the backed up data on CrashPlan, I found my notes didn't make it over. I looked into the issue, saw what I needed to copy over, and asked the build tech to email me the contents of group.com.apple.notes from the old machine. I extracted the zip he sent me, and in Notes ran "import notes" on the directory he sent. It doesn't seem like anything was copied over. Any idea why this might not work? Am I copying the wrong directory, or importing incorrectly or otherwise missing a step? What are the actual files that need to be copied over? Both old machine and new are running El Capitan.

23

The ‘Import to Notes’ function imports text files. Notes itself stores its files in a SQLite database, which is contained within the group.com.apple.notes group container.

~/Library/Group Containers/group.com.apple.notes/

To use this as your Notes database, quit Notes and copy the contents to the group container on your current system.

| improve this answer | |
  • Thanks for this!! Works! If it fits to your setup, you can connect the mac on the same local network, then open preferences -> sharing enable sharing, you are instantly able to see that in your other macs sidebar as a new client on the network, then you can connect to that machine with your same user, and drag it right over to your local, choosing replace. Close and re-open. Thanks again! – blamb Oct 16 '18 at 19:17
  • This worked great on High Sierra - thanks! Leave it to Apple to have such an intuitive process here... – Jordan P Jan 24 '19 at 17:08
0

I would check the contents of the zip files he sent you. As @grg said you can only import text files. There is a 3rd part app called Note2Txt.app that will write all your notes as text files in a folder you choose. You could copy the folder to the new computer and import the folder into Notes. Now if you look in "Imported Notes" you'll see all your previous notes.

| improve this answer | |
0

I had this issue when I bought a second Macbook. I thought it would be simple to use iCloud to sync the two. Unfortunately this is a very unreliable process as reported by many people. I decided to write a bash shell script to deal with it. It works perfectly. You can double click on the backup/restore files seen in Finder. I backed up to Dropbox but you can modify the scripts to write/read to someplace different. I can't figure out how to upload the scripts here so will just include them below as text. There are plenty of comments in the script so you should be able to work out the process. The main script will back up the whole of the Notes app directories. It will also create a suitable restore script to restore the backups to any other Mac.

#!/bin/bash
#set -x

DT=`date "+%y%b%d"`
SAV_DIR=~/Dropbox/Notes
NOTE_DIR=~/Library/Group*/group.com.apple.notes*
TARFILE=Notes.$DT
RESTORE_FILE=notes_restore.$TARFILE.$HOSTNAME.sh

#echo DT=$DT
#echo SAV_DIR=$SAV_DIR
#echo TARFILE=$TARFILE
#echo RESTORE_FILE=$RESTORE_FILE
#ls -ld $NOTE_DIR

# Preserve ownership, permissions and full path to ensure files are
# restored to original locations
# ** You need to use tar xPpf to preserve full path and permissions on
# ** the restore command as well else the leading / will be removed and
# ** the files will be restored relative to where you run the command

tar cfpP /tmp/$TARFILE.$HOSTNAME.tar $NOTE_DIR
mv /tmp/$TARFILE.$HOSTNAME.tar $SAV_DIR

# ------------ Create Restore Script ----------------

# The restore script will have the same name, date and hostname
# as the notes tar file saved in the Dropbox folder
# The file can be seen in the Finder Dropbox window. A double click
# on it will run the restore script.
# This ensures that you can export the Notes app files to dropbox
# from any host and restore to any host by selecting the appropriate
# tar file restore script

echo "#! /bin/bash "                                >  /tmp/$RESTORE_FILE
echo "cp $SAV_DIR/$TARFILE.$HOSTNAME.tar /tmp"      >> /tmp/$RESTORE_FILE
echo "tar xPpf /tmp/$TARFILE.$HOSTNAME.tar"         >> /tmp/$RESTORE_FILE
echo "/bin/rm /tmp/$TARFILE.$HOSTNAME.tar"          >> /tmp/$RESTORE_FILE

chmod 755 /tmp/$RESTORE_FILE
mv /tmp/$RESTORE_FILE $SAV_DIR
| improve this answer | |

You must log in to answer this question.

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