Over a million developers have joined DZone.

Apple Mac Time Machine Runs Very Slowly

DZone's Guide to

Apple Mac Time Machine Runs Very Slowly

· Java Zone
Free Resource

Managing a MongoDB deployment? Take a load off and live migrate to MongoDB Atlas, the official automated service, with little to no downtime.

Not a lot of people know this, but I write many of my blogs in The Wolverhampton Art Gallery’s cafe: the food’s really good and, for a provincial art gallery, there are some very fine painting to be seen producing an atmosphere I find conducive to writing.

I write my blogs using an early 2011 13” Macbook Air with MacOS 10.7.5. This is backed up over my network using Time Machine, which used to work pretty well, backing stuff reasonably quickly 1. However, over the past few months it’s become slower and slower and I realized that I had to do something about this when it took 9 hours to back up 104MB of 6.5GB, which is frankly RUBBISH.

After digging around, I found a few rumours that Time Machine and Spotlight interact in some way, with Time Machine coming off worse.

The 'fix' 2 for this problem is to simply disable Spotlight whilst backing up. You can do this by entering the following command in a terminal:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

This unloads the Spotlight mds from launchd. Having made this change my 6.5GB was backed up in a matter of minutes - a startling improvement.

Once your backup is complete, you can turn Spotlight on again with the following command:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

I’m assuming that you don’t schedule Time Machine to perform hourly backups, if you do then you might want to leave Spotlight turned off; I have, as I hardly use it.

1One of the reasons I swapped to a Mac was that Windows backup had really poor performance no matter what I did.

2More of a work around - Apple needs to sort it out, it should just work.

MongoDB Atlas is the easiest way to run the fastest-growing database for modern applications — no installation, setup, or configuration required. Easily live migrate an existing workload or start with 512MB of storage for free.


Published at DZone with permission of Roger Hughes, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}