Apple Event: May 7th at 7 am PT

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

need to migrate lion server caldav sql dump to mountain lion server

Here is my situation. I was running Lion Server. I did a postgres dump of the caldav database thinking I could re-import after doing a fresh install of Mountain Lion Server. Obviously I was wrong, so now I'm stuck with an empty calendar and address book and all my data in this file. Any ideas as to how I can get this data in my new system?


Thanks.

Mac mini Server (Mid 2010), OS X Server

Posted on Jul 30, 2012 5:00 PM

Reply
9 replies

Jul 30, 2012 8:12 PM in response to nlagaros

Did you make sure that the directory GUIDs for th user on the MLion machine exactly match those from the old Lion system? The caldav server stores calendar data in the postgres database based on the user record GUIDs - so if they are different on MLion then the old data will not be seen. If that is the problem, you will need to manually edit the GUIDs for the user records you created on MLion to match the old ones. If you still have the old system try and export/importt of the user records to the new system.

Jul 31, 2012 5:47 AM in response to nlagaros

Like Cyrus Daboos said, make sure you have the same GUIDS for your users.


Then since you already logged in with your user you have postgresSQL entrys, so you must nuke the dabase before doing an import.


1. make sure you have your users with the right GUIDS

2. Nuke the database by issuing

sudo serveradmin stop calendar

sudo dropdb -U _postgres caldav

sudo calendarserver_bootstrap_database



3. i have no tested it with lion to ML but maybe work the same as i did with 10.6 to 10.7 server, give it a try. Just place the Calendar data at the right place, make sure it has the right permissions then you can start the calendar server. Whatch the migration logs and see if it work. I had a bad time finding that solution when i manually migrated from 10.6 to 10.7

need to migrate lion server caldav sql dump to mountain lion server

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