So I’ve been in the Mac game for quite some time now and all along I was always longing for a good automated backup solution. A few years ago myself and a colleague got together and wrote osx-backup.sh. A simple shell script with a few variables inside. Simply edit the shell script and then install as a cronjob to run nightly. Features of this backup script include:
- Open Directory archiving
- Service Plists
- CalDAV/CardDAV database
- Profile Manager database
- DNS records
- Wiki database and binary files
I’ve been using this script for years now under 10.6, 10.7 and 10.8. The version listed here is for Server 2.2.2 under 10.8.5
Restoration of these backups is fairly simple to do as long as you know some postgres commands. Here’s the article on how to restore the wiki.
Calendar, webmail are fairly similar. DNS restoration is just a matter of placing the files back in
If you need to restore open directory archive you should use Apple’s latest knowledge base instructions. Just make sure that the server hostname matches the backup.
To restore OS X Server setting plists:
sudo serveradmin settings < /path/to/your-sa_backup-servicename-plist