Back up and restore a server using Time Machine

You can back up server files automatically using Time Machine, a comprehensive backup solution.

Time Machine automatically makes a complete backup of all files on the computer to a locally attached external hard drive, an available internal hard disk, or a remote network file system. It also keeps track as files are created, updated, or deleted over time. Time Machine backs up the changes and creates a history of the file system that you can navigate by date. You can use its intuitive time-based visual browser to search back through time to find and restore any files that were backed up.

You set backup options in the Time Machine pane of System Preferences on the server. You can set up a list of folders and disks that you want to exclude from backup. Time Machine automatically excludes temporary files and cache files located in /tmp/, /Library/Logs/, /Library/Caches/, and /Users/username/Library/Caches/.

Time Machine automatically backs up data and settings for these services: Contacts, File Sharing, Calendar, Messages, Mail, Profile Manager, Time Machine, VPN, Websites, and Wiki. Time Machine also automatically backs up some settings for other services, but you may not be able to completely restore settings changed with tools other than the Server app.

After using Time Machine to back up your server, you can restore your server to a previous state.

To restore your server using a Time Machine backup image, hold down Command-R during startup, then choose a Time Machine Backup image for the server using the assistant.

For more information about backing up and restoring with Time Machine, search Mac Help for “back up your Mac.”