Backup

The much-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, over 2 decades 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, so 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 that 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 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. I also make a few recommendations in Manage Backups.

Excluding Cached Data from Time Machine Backups

You don’t need to back up files cached by either the Caching service or the Software Update service, since they’re automatically recreated by OS X as necessary. (For details, see Configure the Caching Service and Configure the Software Update Service.) So make sure you add these 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 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 should make sure you have sufficient drive space available for backups.

Choose Backup Hardware

How much drive space will you 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, to come up with a total you need to add up the amount needed by all users. 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 one that’s offsite at all times. Imagine what would 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

To enable the Time Machine service, just select Time Machine in Server’s sidebar and click the ON button. You’re then immediately presented with the New Destination screen, which is where you choose a spot to store user backups and you 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 123). Click Create.

**Figure 123:** Choose a destination for your users’ backups and optionally set a limit on how much data each user can store.

Figure 123: Choose a destination for your users’ backups and optionally set a limit on how much data each user can store.

Tip: You can’t select the top level of the boot drive, although you can store backups in a subfolder, 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 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 124).

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

Figure 124: 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 easily change where a backup destination’s files are stored on a given drive (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, resetting the client Macs to point at the new destination, and deleting the old one (by clicking the minus button).

Tip: When you create another destination at the top level of a different hard drive, it’s called “Backups-1” by default (with the underlying folder still 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).

Back Up to the Time Machine Service

Configuring Time Machine on client Macs to back up to your new Time Machine service differs only slightly 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. Open the Time Machine pane of System Preferences.
  2. Click Select Disk, choose your new backup destination from the list (Figure 125), and click Use Disk. If desired, select the Encrypt Backups checkbox.
    **Figure 125:** On each client Mac, choose your server’s backup destination.

    Figure 125: 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 126). Then click Connect.
    **Figure 126:** When prompted, enter appropriate credentials to connect to the shared folder.

    Figure 126: 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.

Tip: If Time Machine on a client Mac complains about not being able to back up because the backup is in use, click File Sharing in Server’s sidebar, click Connected Users, select the user corresponding with the client Mac, and click the Disconnect button. Unfortunately, there’s no way to prevent this from happening generally.

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 view on Server’s Time Machine pane (Figure 127).

**Figure 127:** The Backups screen lists all your users.

Figure 127: The Backups screen lists all your users.

There isn’t much you can do here, but pay special attention to the Last Backup column. If you have a lot of users, you can sort the list by clicking the Last Backup column header; 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—information 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 screen (Figure 128).

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

Figure 128: 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!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset