Restoring Calendar Data from Clients after Server Crash
I've had a bad server crash discussed elsewhere:
Re: ServerBackup : Restoring OS X Server from a Time Machine Backup
and
Server 4.1 lost track of ServiceData Location - all Calendar data gone
This is a small server with only 5 users, and I've decided the easiest solution is to start from scratch, rebuilding the user accounts.
The main problem is the loss of Calendar and Contacts data.
I just discovered that the client machines do have backups of these online calendars.
The way to restore these is as follows:
- On the client machine, go to ~/Library/Calendars
- you will see a bunch of folders. The ones you want are the ones that end in .caldav, for example AAAAAAAA-BBBB-DDDD-EEEE-FFFFFFFF.caldav
- this folder represents one user account
- inside this folder are XXXX.calendar folders, each of which represents a single Calendar within that CalDAV account
- within that folder is an Info.plist file, which includes near the bottom the name of the calendar, e.g. <title>MyWorkCalendar</title>
- Within the Events folder is where the gold nuggets are: individual .ics files, each of which represents one event.
Restoring these is easy:
- In Calendar.app, create or select the calendar you want the events to go back into.
- Select all the .ics files in a given Events folder, drag & drop into Calendar.app
I'm so glad I found these files as I was worried they were either missing, or buried deep inside my OS X server backup in some impossible to deal with SQL format.
Mac mini, OS X Server, OSX 10.10.3 with Server.app 4.1