Backup Your Mac: Create a Time Capsule

Creating a Mac Backup Solution Using Your Home Server
A recent incident involving the loss of critical accounting files highlighted a deficiency in my existing Mac backup procedures. While a weekly bootable backup is performed, it proves insufficient for recovering files deleted within the past few weeks.
Utilizing Apple’s Time Machine feature would address this, but adding another external drive to my workspace is undesirable.
The Appeal of a Home Server Backup
Furthermore, the cost of a dedicated Time Machine appliance from Apple – typically ranging from £200 to £300 – seems excessive for a device essentially functioning as a router with integrated storage.
My preferred solution involves leveraging the existing 1TB capacity of my home server for backups. However, direct support for this configuration isn't natively provided by Apple.
Implementing a Custom Backup Strategy
Therefore, a degree of customization and configuration will be necessary to establish this backup system.
This approach allows for file recovery from specific points in time, addressing the limitations of my current weekly backup method.
The goal is to create a robust and cost-effective backup solution without compromising the aesthetic of my workspace.
Essential Requirements
- A secondary hard disk is necessary, with a capacity equal to or exceeding that of your Mac’s main drive.
- A network file server is also required, to which the additional drive can be connected.
This guide will detail the setup process for Windows Home Server, or a standard Windows 7 system utilized for file sharing. However, the principles are applicable to any networked file system.
Prior to proceeding, familiarize yourself with the concepts of Time Machine and Time Capsule if you are currently unfamiliar with them.
Setting Up the Backup Destination
The initial step involves preparing the spare hard drive for use as a Time Machine destination. This typically entails formatting the drive and ensuring it is accessible via the network.
On your Windows server, the drive should be shared with appropriate permissions to allow your Mac to both read and write data to it. Consider security implications when configuring these permissions.
Formatting Considerations
When formatting the drive, the NTFS file system is generally recommended for Windows servers. However, ensure compatibility with your Mac’s ability to access NTFS volumes.
Alternatively, you could explore using a file system that is natively supported by both Windows and macOS, such as exFAT, though performance may vary.
Configuring Time Machine
Once the drive is shared, you can configure Time Machine on your Mac to utilize this network location as its backup destination.
Open Time Machine preferences and select the shared drive from the list of available disks. Time Machine will then begin the initial backup process.
Initial Backup Process
The first backup will likely take a considerable amount of time, depending on the amount of data on your Mac and the speed of your network connection.
Subsequent backups will be incremental, meaning they will only copy changes made since the last backup, resulting in faster completion times.
Verification and Maintenance
After the initial backup completes, it’s crucial to verify that Time Machine is functioning correctly.
Regularly check the Time Machine logs for any errors or warnings. Consider scheduling periodic test restores to ensure the integrity of your backups.
Mac Configuration
The process for setting up backups on a Mac is often the most complex part of this project, so we will begin with a detailed explanation. Launch a new Terminal application window – it’s located within your Applications -> Utilities directory – and then proceed with the instructions provided below.
Input the following command into the Terminal window and execute it by pressing the Enter key. This command serves as a simple modification to instruct your operating system to display Time Machine volumes that are not typically supported.
>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Subsequently, you will need to gather specific details regarding your computer’s name and network identifier. Determining your machine name is straightforward; simply navigate to System Preferences -> Sharing, where your Computer Name will be prominently displayed. It is recommended to assign a name without spaces to minimize potential errors, and record this name for future use.

Return to the Terminal window and enter the following command:
ifconfig
Locate the ETHER hardware address associated with the en0 network interface. This address functions as a unique identifier for your machine. Ensure that the address obtained is from the en0 interface, particularly if you connect to the internet via a wireless connection. Identify the section pertaining to the en0 device and record the 6 hexadecimal digit number listed next to the word ether. Remove all colons (:) to obtain your machine’s unique 16-character alphanumeric code; this will be required in the next step.

The subsequent command will generate a SparseBundle. This file acts as a disk image, encapsulating your machine’s backup data. Time Machine will write all backup information within this file. Be sure to substitute the placeholders in the command with your machine name, Ethernet ID, and desired hard disk size. (Do not include the square brackets; refer to the example provided.)
sudo hdiutil create -size [Your hard disk size here]G -fs HFS+J -volname “[Your Machine Name here] Backup" [Your machine name here]_[Your 16 digit alphanumeric hardware ID here].sparsebundle
For instance, the command I utilized for my iMac, which has a roughly 950GB hard drive and is named "iMac", is as follows:
sudo hdiutil create -size 950G -fs HFS+J -volname "iMac Backup" iMac_d49a20d16b79.sparsebundle
A crucial note: It is essential to manually type the command on your own computer. Attempting to copy and paste from this webpage may introduce character encoding issues, resulting in an error similar to the one shown below:

Setting Up a Network Server for Backups
The process of physically installing a hard disk within your computer is beyond the scope of this guide. For instructions on adding a second hard drive, refer to a previous article. Many drives are initially formatted using FAT32, so reformatting or partitioning to NTFS is often necessary. Following this, the network share can be configured.
Windows 7 Configuration
To enable sharing of a drive or folder in Windows 7, locate the item, right-click, and choose Share With -> Advanced Sharing.
Within the subsequent dialog, click Advanced Sharing once more. Then, activate the Share this Folder checkbox and assign a memorable name to the share, such as TimeMachineBackup.
Permissions are crucial at this stage. By default, users are granted only read access to the share. Select the desired user or group – utilizing 'EVERYONE' offers the simplest solution – and modify the permission setting at the bottom of the dialog to FULL CONTROL.
Utilizing Windows Home Server
Given that a Windows Home Server is already in operation for video downloading and streaming, integrating the Time Machine backup drive into this system is logical. After physically connecting the drive, restarting the server, and formatting it as NTFS, access the Home Server Dashboard.
Navigate to the Server Folders and Hard Drives tab. On the right sidebar, click the “Add a Folder” button.
Proceed through the Wizard to establish your TimeMachineBackup folder. Ensure the folder is placed on the newly added drive. If this step was missed, the Move Folder function allows for easy relocation later. Configure permissions as needed, but bypass the backup creation step – a backup of a backup is often redundant, though technically advisable, practical limitations exist.
Backing Up Your Mac
Return to your Mac and locate the SpareBundle file that was previously generated. If the specified command was utilized, the file should reside in the root directory of your user’s home folder.
Access the network share you established earlier. Sometimes, the homeserver isn't visible through automatic network discovery. In such instances, utilize COMMAND-K and enter the address smb://HOMESERVER (substitute with your homeserver’s actual name). Alternatively, the machine’s IP address can be used.
Transfer the SpareBundle file into the network Time Machine Backup shared folder. Subsequently, navigate to the Time Machine system preferences.
Enable Time Machine and select Select Disk. Assuming successful completion of prior steps, your backup should appear in the list, identified by the name assigned during SparseBundle creation. Choose it to begin backing up to your custom Time Capsule.
The effectiveness of this Time Machine setup remains to be tested in a recovery scenario. However, it is anticipated to be a valuable resource for future data protection needs.
Share your experiences, successes, or any encountered issues in the comments section. Further assistance and community support are available on our dedicated tech support forum.





