Time Machine and Slow First Backup

So after my woes getting Leopard I started playing with one of it’s best features on the weekend, Time Machine.

Time Machine is an example of what’s so good about Mac OS X:  A beautiful UI on top of some serious software.  The initial experience is about as good as it can be:

Plug in external USB drive.  The system notices, asks if you want to use this drive for Time Machine Backups?  When you say yes, it asks you if it’s OK to erase what’s on the drive if it’s not formatted HFS+ (the Mac native file system). Say yes to this, and you’re done.  A backup is scheduled for a short time later.

However, some people have been reporting that this first backup is taking a very long time, and I was one of them.  My PowerBook has a 60 gig drive in it, and after 2 solid days of backing up, I started to get suspicious.

Digging around the Apple forums, I found a few people who said that letting Time Machine format the drive was the problem, so I stopped the backup, formatted the drive myself using Disk Utility, and then started a new backup.  This one went very quickly, completing the backup in a few hours.

During the slow backup I had a look at file system activity using fs_usage (a very handy tool), and noticed that the Finder process was constantly making getattrlist calls on files all over the Time Machine backup disks during the backup; during my successful backup this wasn’t happening. 

Someone had also suggested that the problem was that Spotlight was indexing the backup drive during the backup, but before formatting the backup drive, I tried adding it to the Spotlight exclusions and kicking off a backup, and that didn’t help.  The problem seems to be something related to how Time Machine prepares the disk.

Anyway, now that my initial backups are done, incremental backups are quick and I get to play with the funky Time Machine starfield UI that makes me want to trash files just so I can go get them from my backups.

22 Responses to “Time Machine and Slow First Backup”

  1. Matthew Dornquast Says:

    Interesting alternative to time machine:

    http://www.crashplan.com/features/timeMachine.vtl

    It’s cross platform, and has many more features while remaining quite easy to use.

  2. Nick Radonic Says:

    I had originally partitioned my 1 TB (10^12 bytes ~= 931 MB?) drive and over about 4 days got all of 14 GB across. After watching 100 GB go across manually in 2 hours into the other partition I started looking for info on Google, and came across your web site. Stopped the backup - at dock and on preferences page. Then I erased the drive and turned on the backups (prefs and dock) and it is going much faster. First GB in 5 minutes.

    fs_usage still shows a lot of getattrlist entries but it zips past much faster than before.

    Cheers

  3. Het9 Says:

    Any suggestions for the dreaded time machine stall on initial backup? Progress just stops at exactly 17.01gb every time - despite a dozen attempts to repartition my drive and start again. I am using the correct partitioning scheme and have no spaces, non-alphanumeric characters in the drive/volume names. I am desperate and any suggestions would be appreciated.

  4. Anthony Persaud Says:

    @Het9

    I had the same problem: Time Machine stalling at weird locations (amount of MB or KB). I found a fix for it after experimenting. Again, Backing up + Spotlight Indexing combination is the culprit for the stall (probably because spotlight index and changes it’s index file constantly while indexing while Time Machine is backing it up (which causes Time Machine to keep backing up the same file, and because you don’t have the Time Machine backup drive from not being indexed, it goes into a doom loop).

    Anyway here is the fix for the initial Time Machine backup.
    1) Turn off Time Machine.
    2) Clean all Time Machine backup files from the external hard drive being used for backups. (if you have any)
    3) Add the Time Machine external hard drive to the list of drives NOT to be indexed for Spotlight.
    4) Restart your machine (this will skip more steps that i have to write).
    5) After machine restarts, check spotlight (Command + Space) and see if it is indexing. If it is, leave it alone until it finishes indexing any drives left.
    …later..
    6) After Spotlight has finished, turn Time Machine back on.
    7) On the Time Machine icon on the dock, right click it and select ‘Back Up Now’. It should work.

    Hope this helps (took me hours to figure out)

  5. Aaron Batista Says:

    I am using an external HD for my backups (Maxtor OneTouch4, USB). Even though I formatted it as HFS+ using disk utility, when I rechecked it showed it to be FAT formatted. To format as HFS+ definitively, I followed these steps (as described in the link below):
    1) open disk utility
    2) select the “partition” tab
    3) choose one partition from the pulldown
    4) click on “options”
    5) Click on “GUID”
    6) Once that finishes, select the “erase” tab. You’ll see it’s now no longer FAT type. You can erase, for good measure.

    Things are zipping along nicely now.

    http://gizmodo.com/gadgets/apple/leopard-disk-utility-format-issue-screws-with-time-machine-but-theres-an-easy-fix-316573.php

  6. Het9 Says:

    @ Anthony

    I appreciate the advice. I tried that and it didn’t work. What did work was excluding my System and System Applications from backup. Everything else backs up fine, but if I try to include the System it just stalls again halfway through backing up the System. I assume something is corrupt in the System that is causing that problem. Strangely, I haven’t been able to get disk utility to check the permissions ever since I upgraded to Leopard. Anyone have any thoughts on what the culprit system files could be?

  7. Patricia Rose Says:

    Turn off your anti virus and it speeds up your Time Machine

  8. rivasmmm Says:

    Turning off Norton AntiVirus sped it up noticeably– thanks!

  9. Freddy Says:

    Instead of turning Norton AntiVirus off, I specified the timemachine drive as a drive not to scan.

    I did this half way through the first timemachine backup and immediately the backup speed increased significantly.

  10. John Donahue Says:

    Good call with the spotlight fix. Worked immediately. I actually did this while backup was in progress and the speed jumped dramatically.

    Thanks.

  11. John Donahue Says:

    Never mind… responded to the wrong forum. Pardon the interruption.

  12. Randy Says:

    I did the Spotlight fix also and my 120 GB MacBook Pro backed up overnight to a Firelite 160.

  13. Graeme Says:

    I just stopped my virusscan (Sophos) from on access scanning and backup speeded up immediately.

  14. Alan "new-to-Mac" Browne Says:

    THANK YOU THANK YOU THANK YOU.

    I just received a 1 TB Iomega drive ostensibly pre-formatted for Mac (HFS+)

    After 7 hours it had transfered about 14 GB. What!?!?

    I looked around and found your blog.

    Stopped the backup, reformatted the drive and restarted Time Machine.

    As I type this it is already at 3 GB after a few minutes.

    Thanks. You’ve saved some unnecessary wear and tear on the new drive…. and my nerves.

    Cheers,
    Alan.

  15. Sai Ramadugu Says:

    Hi,
    After leaving my 750 Gb hard drive for overnight, it backed up only 5 Gb. I found it annoying as I was writing a paper for publication and I needed my Mac Book Pro badly at work. Luckily I found your website and it helped me a lot to erase the disk myself and then take the backup.
    Thank you very much!!
    Sai

  16. Time Machine Slow Initial Backup | Tongfamily.com Says:

    [...] you aren’t using a Time Capsule, don’t let Time Machine format the disk, do it yourself (not relevant if you have Time Capsule since these [...]

  17. mike Says:

    TURN OFF ANTIVIRUS!!!!

    oh man it slows it down so much…
    I’m on a university network and we’re required to have antivirus, but it’s not like i need it anyway!

    I wish I found that out about 8 hours ago!

  18. wayne Says:

    Spotlight slowed my backup a bit as well. I made an exclusion while the drive was backing up and its already copied over 2 gb in the matter of a few minutes. Im on a Macbook CoreDuo running 10.5.2

    I hope this little bit of info helps a well

  19. John Says:

    I formatted my disk 4 times (HFS Journaled), and it is still super slow! At two gigs an hour it is going to take over 8 days!!! This sucks. I have 10.5.3 on PowerPC dual pro.

  20. RR Wesley Says:

    OMG I am dying here. I have a 160G Powerbook G4 and a 60G MacBook and it is taking forever. I am using a time capsule so I guess it will take a week. Sad, very sad.

  21. Alex Santos Says:

    Anthony Persaud, thanks your tip fixed my slow back up!!!! Thanks a bunch. Should mention I noticed the Finder was hogging CPU cycles b4 the startup

  22. Daniel Says:

    Same thing. Disabled Intego Antivirus and backup speed increased dramatically. 288 gigs in about 12 hours, which is about double what it was before…. and I’m not getting the “cannot complete backup” about 70% through the backup anymore.

    So, i think antivirus does something not only to speed but prevents successful completion at times (at least the first backup anyway).

Leave a Reply