Wednesday, 14 May 2014

Backing up Calendars and Profile Manager in Mavericks 10.9 Server (v3)

Once again Apple have played around with the locations of the Postgres databases that make up the backend of Calendar Server (caldav) and ProfileManager (_devicemgr).

They now reside in separate databases (my guess is this is to make each service fully independant of each other).  Thankfully they can still be backed up using PG_DUMP and PG_DUMPALL.

As of Server v3, you can use the following commands to connect to the relevant unix socket paths and perform backups either as pgdump files that can be restored using pg_restore or as raw sql files (not sure why you would want the raw sql but hey ho), anyway here's the how to...

Don't forget to sudo or run as root...

Backup Calendar Server

Backup Profile Manager

Good luck!

1 comment:

  1. This is perfect! But how do I restore the backup on mavericks server? Sorry I am new to this?