You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Time Machine backup very slow in Lion

After installing Lion Time Machine backup (not initial one which is long by default) takes about 40 minutes vs. about 5 minutes in Snow Leopard. Very annoying because it slows down my entire system for such a long time. Any help, please?

Mac mini, Mac OS X (10.7)

Posted on Jul 20, 2011 12:10 PM

Reply
488 replies

Oct 2, 2012 7:00 AM in response to petewaw

Hi,


I think I found the workaround for this (my TimeMachine backup has just ended after only 2 hours). I had to do several operation using the terminal and I finally have my TimeMachine working.


Actually, the problem is between TimeMachine and Spotlight. Indexing blocks the backups... I read a lot, tested several things.


Putting in all together, here is what I did


Using Terminal:

1. I disabled Spotlight indexing:

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


2. I deleted Spotlight index in all my drives (including the backup drives):

sudo rm -rf /.Spotlight-V100/Store-V1 /.Spotlight-V100/Store-V2 /.Spotlight-V100/VolumeConfiguration.plist


(rm -rf /.Spotlight-V100/* did not work for me)


3. I deleted /var/folders content (see this topic to know why):

sudo rm -rf /var/folders/*


4. I deleted the .inProgress files from my Backups.backupdb subfolders (put to trash then empty the trash is the only way to do this).

It may be necessary to reformat your backup drive instead of only deleting .inProgress files.


5. I restarted Spotlight:

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

sudo mdutil -i on -E /


6. I waited until Spotlight finished indexing process

7. I launched a new backup using TimeMachine


8. I opened a bugreport to Apple with the title: "TimeMachine hangs when Spotlight is in use under Mac OS X 10.7".

Oct 2, 2012 7:22 AM in response to D. Rackerby

D. Rackerby wrote:


Dimaxum: That procedure can be accomplished via GUI as described here:


http://support.apple.com/kb/ht2409

Big problem with the gui approach

1. Cannot put TM volume into privacy as it uses spotlight.

2. When main HD is taken out of privacy it starts a new index. In my case estimated at three weeks.


My solution was restore 10.7.4 using TM (Command R while booting etc etc) til they get 10.7.6 out. I can't buy mountain lion as it would take most of my broadband allowance. No longer happy with Apple at all.

Oct 2, 2012 8:58 AM in response to lauhub

lauhub wrote:

. . .

2. I deleted Spotlight index in all my drives (including the backup drives):

sudo rm -rf /.Spotlight-V100/Store-V1 /.Spotlight-V100/Store-V2 /.Spotlight-V100/VolumeConfiguration.plist

Usually, that's all you need to do. And it's a bit easier to just delete the whole /.Spotlight-V100 folder. OSX will re-create the folder and contents.


4. I deleted the .inProgress files from my Backups.backupdb subfolders (put to trash then empty the trash is the only way to do this).

That shouldn't be necessary if the problem is with the Spotlight index. The only time it's needed or helpful is if the .inProgress package is so large it causes Time Machine to delete old backups. Otherwise, Time Machine will clean it up when the next backup completes.

Oct 3, 2012 11:05 AM in response to lauhub

@lauhub did the above list of actions permanatlly fix the issue for you? I disabled spotlight and was able to complete a a new full TB backup (390GB) at a normal pace (about six hours, while I slept last night) but after I turned spotlight back on (I use it regularly) It's now taking a massive amount of time to do anything, and is mostly just failing.


I'm assuming that since I just disabled spotlight (and didn't clean it up) that I just hid my issue during my backup.


Just wondering if I should expect things to return to normal if I follow the above list of actions. Also, did you perform any reboots during any of that?


Thanks for helping to fix this issue!

Oct 3, 2012 11:15 AM in response to Varkias42

@Varkias42

No, it is not a permanent fix. Currently, I have to disable spotlight using the "launchctl unload..." command before running a TM backup. Then I re-enable Spotlight using the load command.


The other steps are only to re-build Spotlight index if it is corrupted. It allowed me to make a TM backup without disabling Spotlight yesterday, but a few hours later, a new TM backup was also blocked. So now I disable SL, run TM backup, then enable SL.


So definitely, no, it is not a fix, only a workaround for people who experience issues with both TM and Spotlight (which are linked together).

Oct 3, 2012 11:23 AM in response to Varkias42

Start by just deleting the index. That fixes it permanently for many (perhaps most?) folks.


Turn Time Machine off and if a backup is already running, cancel it. Then delete the index on your internal HD (and any other volumes being backed-up). Wait for re-indexing to complete before turning TM back on.


If that doesn't do it, delete the index for your backups. Note that if your backups are on a network, the index you want is the one inside the sparse bundle, not at the top level of the drive (although it won't hurt to delete both). See the pink box in #D2 of Time Machine - Troubleshooting for details.



If you still have trouble, try lauhub's whole list.

Oct 3, 2012 12:03 PM in response to petewaw

Time Machine uses Spotlight, so re-enabling Spotlight after the backup is complete may or may not work. Indexing just my 500 GB SSD was projected to take at least 3 days. Since I index all of my internal drives (6.5 TB of data total) using Spotlight is not an option for me. On the advice of the development Apple Support eschued asking me to delete the V100 file, telling me to keep Spotlight off and wait for the fix.

Oct 3, 2012 1:32 PM in response to PhotoShoot

@PhotoShoot


So Apple told you there was a fix coming?


I only have about 360GB of data on this iMac, so for now turning off spotlight, running a backup, and then turning it back on isn't a bad option. Since I don't do much on this computer other then email and entertainment, manully doing this once a week or so is more then adequate for the time being. I just hope there is a fix soon, because this is a PIA.

Oct 3, 2012 10:08 PM in response to petewaw

So I've suffered the same as everyone else but unfortunately didn't read all the multitude of threads in the correct order so basically lost my original TM backup, then my Spotlight db in a failed effort to fix it.


A thread somewhere which I can't find again (I think it was more about slow Spotlight index) had a post from a guy who simply reinstalled 10.7.5 and everything was back to normal. So I did that, and it worked.


After completion of the reinstall I left TM off and allowed Spotlight to index. I went out for a ride and when I came back it was done - 149GB in something less than 90 min. And it works, I've searched for stuff on my HD.


I then turned TM on and it took 2hrs 9min to complete.


So if you are considering spending the time and bandwidth downgrading to 10.7.4 you may wish to consider a reinstall of 10.7.5.

Oct 4, 2012 6:06 AM in response to lauhub

lauhub,


I can not guarantee that it will fix it in your instance, clearly this is a very obscure bug.


The MacMini I have Lion on came with Lion installed. I've had TM running on it since the begining and it has worked fine. The TM slowdown I noticed on 2Oct, when it actually started playing up I don't know - it's my wife's computer, we'd just come back from holidays and she'd downloaded hundreds of photos and then noted TM said it was going to take 93 days to complete it's back up! So I spent an entire day trying to fix it.*


There are a large number of threads out there on this subject, and the related slow Spotlight indexing. I saw a couple that indicated they just rolled back to 10.7.4 and that fixed it. So I downloaded the 10.7.4 combo update, but whilst that was happening I read another post that said they just did a 10.7.5 reinstall and that fixed it.


So my plan was to try a 10.7.5 reinstall, and if that didn't work, roll back to 10.7.4. Thankfully 10.7.5 worked for me. Your milage may vary.


Good luck.


* My efforts to fix it included wiping a years worth of TM backups and starting again, and wiping my Spotlight Indexs, all to no avail. As far as I'm aware the guy that simply did the 10.7.5 reinstall didn't trash anything so I wish I'd tried that option first.

Oct 4, 2012 7:36 AM in response to petewaw

My Time Machine is doing the same thing - taking forever and ever to back up. Yet the stange thing is that if I 'Enter Time Machine', I find that it has backed up regulalrly over the proceeding few hours, hour by hour. SO I'm not sure what is going on when it says it is 'backing up'. Has anyone else looked to see if it has been backing up properly while it syas it is stuck?

Robin

Time Machine backup very slow in Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.