Skip to content
Thoughtful, detailed coverage of everything Apple for 34 years
and the TidBITS Content Network for Apple professionals
4 comments

Take Control of OS X Server, Chapter 13: Backup

This article is a pre-release chapter in the upcoming “Take Control of OS X Server,” by Charles Edge, scheduled for public release later in 2014. Apart from Chapter 1: Introducing OS X Server, and Chapter 2: Choosing Server Hardware, these chapters are available only to TidBITS members; see “Take Control of OS X Server” Streaming in TidBITS for details.


Backup

The long-lamented Dantz Development, creators of the Retrospect backup application, had a wonderful tagline for their product:

To go forward, you must backup.

Dantz trademarked that phrase in 1992, but it hasn’t lost any of its applicability today, 22 years later. The backup world may have changed hugely since then, but backing up remains absolutely essential.

When it comes to OS X Server, there are two aspects of backup that you’ll want to consider, backing up the server itself and running the Time Machine-compatible backup server for your users to back up to over the network. Let’s look at each in turn.

Alternatives to the Time Machine Service

The Time Machine service does a good job on its own, but other developers go significantly further with features such as:

  • Data deduplication, to back up only a single copy of identical files that exist on multiple machines
  • Compression, to reduce the amount of space required for backed-up files
  • Comprehensive management consoles with extensive reporting
  • More fluid management of backup destinations
  • Support for additional types of backup destinations, including tape
  • Access to backed-up files from mobile devices
  • Cross-platform compatibility for backing up Windows PCs or Linux boxes

As always, you’ll pay—potentially a lot—for these features, but if you need them, they’re worthwhile. Two of the main entrants in this field are Code42 Software’s CrashPlan PROe and Archiware’s P5 Backup.

Back Up the Server

Luckily, when it comes to backing up your server, there’s little that’s different from backing up any other Mac, and as a result, I strongly encourage you to read Joe Kissell’s Take Control of Backing Up Your Mac, which is the most comprehensive guide to the subject available. It talks about the need for three types of backups:

  • Versioned backups: Most Mac users rely on Time Machine, which creates versioned backups—copies of each file as it exists at different points in time. Time Machine works fine with a server.
  • Bootable duplicate: Create and regularly update a bootable duplicate of your server on an external drive so you can bring your server back online quickly should its hard drive die.
  • Offsite copies: It’s essential to have a copy of your data in another location in the event of fire, flood, or theft. Think about using a cloud-based backup service for this, or rotating one of several bootable duplicates offsite on a regular basis.

Take Control of Backing Up Your Mac also points out that you should consider in advance what you’d do if your server Mac itself dies. It’s easy to think that you could just move a hard drive to another Mac, but make sure that other Mac has sufficient CPU and RAM to run your services.

Excluding Cached Data from Time Machine Backups

You don’t need to back up files cached by either the Caching or Software Update services as they’re automatically recreated by OS X as necessary. For details, see Configure the Caching Service and Configure the Software Update Service.

Make sure to add the following directories to Time Machine’s exclusion list (click Options in the Time Machine preference pane).

  • Caching: /Library/Server/Caching/Data, or wherever you set the Caching service to store files
  • Software Update: /Library/Server/Software Update/Data/

Backing Up Server Settings with Bender

Sometimes you don’t want to restore an entire machine just to recover from corrupted settings, but OS X Server stores settings in so many locations that it’s infeasible to figure out what to recover.

A free tool called Bender, based on some code I wrote years ago, automates the backup of OS X Server settings, so you can easily restore settings in the event of corruption, or use them when upgrading or migrating to a new system. Every evening at 10 PM, Bender backs up the following files and folders in a directory labeled with the date and time the backup was run:

  • An Open Directory archive if the server is running as an Open Directory master.
  • A single backup file of all of Server’s settings.
  • A series of individual backup files of each setting in Server, so you can restore or import select settings.
  • A backup of the the Postgres database used by Profile Manager and Wiki services.

For instructions on restoring backups created by Bender, see the Bender Web page. And be sure to back up Bender’s backups as well!

Enable Time Machine Backups

Turning on the Time Machine service is easy, but before you do, you want to make sure you have sufficient drive space available for backups.

Choose Backup Hardware

This raises the question of how much drive space you’ll need to allot to backups. Time Machine requires, at a bare minimum, that the destination drive have 1.2 times the space occupied by the data you’re backing up. But since the entire point of Time Machine is to let users go back in time to recover older versions of files, you’ll want to allocate more space for each user. How much more depends on how much space you have to play with and how much data each user creates. If someone mostly does email and Web browsing, with some light word processing and spreadsheet work thrown in, 1.5 times the current data would probably be fine. On the other hand, if a user is working with large graphics or audio files, 2 or 3 times the current
data wouldn’t be inappropriate.

And of course, you need to add up the amount needed by each user to come up with a total. If you haven’t done this before, you might be shocked by the space necessary, but rest assured there are plenty of products into which you can slot multiple large hard drives, including those from Drobo, Promise, and Synology.

Of these three vendors, Drobo’s products are the most unusual, relying on the proprietary BeyondRAID technology and offering in-place upgrading of drives and mix-and-match drive sizes. Promise’s Thunderbolt-based RAIDs are extremely fast and have the implicit blessing of Apple, being sold through the Apple online store. Finally, Synology’s NAS (network attached storage) units are also highly regarded. Needless to say, don’t skimp on your storage box or how it connects to your server; USB 2 isn’t acceptable.

Also consider the possibility that you’ll want to swap between a pair of these devices, so you can have have one that’s offsite at all times. Imagine what could happen if your office were to burn down or be badly damaged in an earthquake or flood—you’d lose all the original data on user Macs and the onsite backup.

Note: At the moment, 3 terabyte hard drives are the sweet spot in the cost per byte spectrum, but pay attention because the price of storage always goes down, natural disasters such as the 2011 floods in Thailand notwithstanding.

Configure the Time Machine Service

Enabling the Time Machine service is easy—just select Time Machine in Server’s sidebar and click the ON button. When you do that, you’re immediately presented with the New Destination screen, which is where you choose a spot to store user backups and limit the size of each user’s backup to a specified size.

Note: Macs running versions of OS X prior to 10.9 Mavericks won’t honor your backup size setting.

Click the Choose button next to Store Backups In and select the desired destination, usually the top level of a hard drive. Then, if you want, select the Limit Each Backup checkbox and enter a size in gigabytes (Figure 1). Click Create.

Figure 1: Choose a destination for your users’ backups and set a limit on how much data each user can store, if desired.

Figure 1: Choose a destination for your users’ backups and set a limit on how much data each user can store, if desired.

Tip: You can’t select the top level of the boot drive, although you can store backups in a sub-folder, such as /Users/Shared.

If you’ve selected the top level of a drive, Server creates a shared folder called Backups, storing it inside another folder called Shared Items. This Backups folder is a true shared folder, since Time Machine relies on the File Sharing service (see Chapter 6, File Sharing).

Note: If you haven’t yet turned File Sharing on, the Time Machine service enables it for you.

The Settings screen in the Time Machine service lists your newly created destination, showing at a glance how much space remains available on the drive (Figure 2).

Figure 2: The Settings screen of the Time Machine service lists all your backup destinations.

Figure 2: The Settings screen of the Time Machine service lists all your backup destinations.

If you want to change the backup size limit for a backup destination, double-click the destination in the Settings screen and enter a new number.

Although you cannot change where a backup destination’s files are stored on a given drive easily (and thus you can’t move them to a larger drive), you can define additional destinations, which appear to users as separate drives. To make a new destination, click the plus button, choose a location, and set a backup size limit.

Note: You cannot change where a backup destination’s files are stored on disk by editing a destination; the easiest way to change a location is by creating a new destination, reset the client Macs to point at the new destination, and delete the old one (click the minus button).

Tip: When you create another destination at the top level of a different hard drive, it will be called “Backups-1” by default (the underlying folder will still be called “Backups”). You can change that name, or the name of any backup destination, in the File Sharing service (see Create a New Shared Folder in Chapter 6, File Sharing).

Back Up to the Time Machine Service

Configuring Time Machine on client Macs to back up to your new Time Machine service is only slightly different from configuring it to back up to any other drive, as explained in Joe Kissell’s Take Control of Backing Up Your Mac. Follow these basic steps:

  1. From the Time Machine menu, choose Open Time Machine Preferences.
  2. In the Time Machine preference pane, click Select Disk, choose your new backup destination from the list (Figure 3), and click Use Disk. If desired, select the Encrypt Backups checkbox.
    Figure 3: On each client Mac, choose your server’s backup destination.

    Figure 3: On each client Mac, choose your server’s backup destination.

    Note: The Time Machine service uses the Bonjour discovery service to make the backup destination visible to client Macs automatically.

  3. Since your backup destination is really a shared folder, you must enter the name and password of a user who has access to the shared folder (Figure 4). Click Connect.
    Figure 4: When prompted, enter appropriate credentials to connect to the shared folder.

    Figure 4: When prompted, enter appropriate credentials to connect to the shared folder.

  4. Time Machine starts backing up to the backup destination.

Needless to say, initial backups will take a long time as Time Machine copies all of each user’s data, but subsequent backups should be much faster.

Tip: For the best possible performance, make sure client Macs are on Ethernet, not Wi-Fi, for the initial backup and any significant restores.

Manage Backups

To keep track of the backup status of your users, and how much drive space their backups are taking up, click the Backups tab in Server’s Time Machine screen (Figure 5).

Figure 5: The Backups screen lists all your users.

Figure 5: The Backups screen lists all your users.

There isn’t all that much you can do here, but pay special attention to the Last Backup column. If you have a lot of users, you can even sort the list by clicking column headers; if someone hasn’t backed up in a few days, it’s worth checking in to see what the problem may be, given that Time Machine runs automatically.

Similarly, sorting by Total Size is useful to identify which users are backing up the most data, which you could then use to adjust backup size limits or plan for new backup drives.

To learn more about a particular backup, double-click it to bring up the Summary dialog (Figure 6).

Figure 6: The Summary screen provides additional information about a particular backup.

Figure 6: The Summary screen provides additional information about a particular backup.

Finally, if necessary, such as when a user leaves your organization, you can delete unnecessary backups by selecting them in the Backups screen and clicking the minus button. Needless to say, deleted backups can’t be restored, so be careful!

Read More: About | Chapter 1 | Chapter 2 | Chapter 3 | Chapter 4 | Chapter 5 | Chapter 6 | Chapter 7 | Chapter 8 | Chapter 9 | Chapter 10 | Chapter 11 | Chapter 12 | Chapter 13 | Chapter 14

Subscribe today so you don’t miss any TidBITS articles!

Every week you’ll get tech tips, in-depth reviews, and insightful news analysis for discerning Apple users. For over 33 years, we’ve published professional, member-supported tech journalism that makes you smarter.

Registration confirmation will be emailed to you.

This site is protected by reCAPTCHA. The Google Privacy Policy and Terms of Service apply.

Comments About Take Control of OS X Server, Chapter 13: Backup

Start the discussion in the TidBITS Discourse forum