Exploring Time Capsule: Time Machine over the Network vs USBTime Capsule is billed as an ideal backup target for Time Machine. At the same time, networked drives (and particularly wireless shares) are often slower than a directly connected USB backup drive. This segment, the fifth of six exploring Time Capsule in depth, compares the pros and cons of using a solution like Time Capsule and the AirPort Extreme to perform Time Machine backups relative to using a directly attached hard drive.
Real World Tests: Network Time Machine vs USB Time Machine
Even at top speed and positioned in a rarified spectrum of bandwidth, 802.11n can't hold a candle to the throughput of a directly connected USB hard drive. Of course, connecting a USB hard drive to perform Time Machine backups is also not a brilliantly convenient setup. Additionally, Time Capsule supports Time Machine backups from multiple Macs; to do the same thing using a directly connected USB drive, you'd have to unplug the drive at regular intervals and attach it to each machine needing to be backed up.
Time Machine also deals with directly connected UBS hard drives (or Firewire or SATA drives) and network shares on Time Capsule or AirPort Extreme drives differently, making the two methods incompatible. Users have to decide between using Time Machine over the network or to a local disk; the same USB drive can't be shuttled between the two to create a single set of backups.
When using a directly connected drive, Time Machine saves its backup files in a hierarchy of folders by date. Part of the magic of Time Machine comes from the use of hard linked files, where a single data file on disk can be linked to multiple file records appearing in different folders. This enables the system to keep a full set of files for each backup session without actually duplicating the contents of the files that haven't changed. This also allows Time Machine to delete folders of backed up files that are no longer needed without coping any of the files around, yet maintain a full set of backups. Hard links were described in greater detail in the article Road to Mac OS X Leopard: Time Machine.
Apple added support for hard links to the Mac's native HFS+ file system to support Time Machine. Some file systems don't support hard links, so in order to consistently handle Time Machine backups on network shared file systems, Time Machine uses a different method of saving its files: it creates a sparse file disk image that appears to the native file system to be a standard file, but which Time Machine can internally organize as a virtual HFS+ disk with support for hard links. Inside this disk image, the hierarchy of hard linked files looks the same as that of a directly connected Time Machine disk.
There isn't a way to tell Time Machine to target a sparse file disk image of your own making however, so you can't use this method with a directly connected drive. Subsequently, the file layout between network connected drives and directly connected disks used by Time Machine are not compatible or interchangeable. That means you can't plug in a drive directly and begin a Time Machine backup, and then append further backup updates onto it after plugging the drive into a Time Capsule or AirPort Extreme as a network shared disk; Time Machine will simply copy all the files over again in parallel.
The best alternative short of that is to plug the base station into the host computer directly via Ethernet, and allow Time Machine to backup to the disk the fastest way possible for its first session. After it's complete, the base station can be unplugged and subsequent backups will occur wirelessly. This method can also be used anytime you've performed major changes and have a lot to back up, or whenever you want to accelerate your Time Machine backup session. As the numbers below indicate, its about two to four times faster to copy files over Ethernet compared to 802.11n.
USB vs Network File Sharing Shootout
For an idea of how much faster direct Gigabit Ethernet is to WiFi N or to a directly attached USB drive, we performed some tests again, twice, to see how much difference there would be between the tests. Note that wireless times tended to fluctuate wildly, while times for USB or Ethernet were far more consistent.
- Directly attached to a MPB, our USB drive took 0:49 to copy the gigabyte of files.
- The same drive, attached to Time Capsule via USB, took between 4:21 and 7:22 to copy via 802.11n using 5 GHz with wide channels.
- Using the internal drive inside Time Capsule, it took between 5:45 and 6:30 to copy via 802.11n using 5 GHz with wide channels.
- The external drive, attached to Time Capsule via USB, took between 2:19 and 2:20 to copy via Gigabit Ethernet.
- The internal Time Capsule disk took between 1:39 and 1:40 to copy via Gigabit Ethernet.
- The external drive, attached to a PowerMac G5 via USB, took between 0:38 and 0:43 to copy via Gigabit Ethernet, slightly faster than when it was used as a directly connected USB drive.
Clearly, wireless networking involves some mystically complex principles that result in a wide margin of performance variance: even with identical settings, files can take anywhere between 2:15 and 8:00 per gigabyte to copy. Still, WiFi also offers a level of convenience and at least fairly reasonable performance (when configured properly and in ideal conditions) that supports an increasing scope of useful applications, from AirTunes streaming to file and print sharing to Time Machine automated backups.
By tuning your WiFi network to get the most of your signal, you can expect decent performance from background backups and centralized file sharing without having to string up Ethernet cables. If you already have an Ethernet network in place, Time Capsule doesn't offer the most impressive file server performance; it's really quite disappointing for use as a Gigabit Ethernet file share host.
Remember that if you need better disk performance than Time Capsule can offer on its own, you can attach an Ethernet NAS appliance to the base station's Gigabit Ethernet LAN ports, or alternatively use Personal File Sharing on a Mac similarly connected via the Gigabit Ethernet switch. Wireless clients likely won't see any difference in their access to the file server, but wired clients will. Such an alternative is also significantly more expensive, larger, and will consume more power.
page 2 of 2: Charting Performance: USB vs 802.11n vs Gigabit Ethernet; and Gigabit NAS vs USB RAID.
On Topic: Current Hardware
- AppleCare for Mac now covers batteries retaining less than 80% charge
- Apple will replace some faulty 3TB iMac hard drives under new repair program
- Apple provides glimpse of manufacturing, customer support operations in Ireland
- Apple adds 5K support to MacBook Pro as target display mode remains absent for Retina iMac
- Apple upgrades some 27" non-Retina iMac orders to 5K model following price cut