Time machine restore old dock

Discussion in 'macOS' started by Kimbie, Apr 14, 2011.

  1. Kimbie macrumors regular


    Jan 6, 2010
    Just got a new 2011 MBP to replace my 2009 one.

    Did a full backup on my TM on the 2009, moved it over to the 2011 one, ran Migration Assistant and let its do it thing.

    It copies everything over, but not the dock or the logon items.

    Is this be design or did I miss something?

  2. wrldwzrd89 macrumors G5


    Jun 6, 2003
    Solon, OH
    Same issue for me - different reason for it occurring, though.

    The fix is a bit complicated.

    1. Create a second administrator user
    2. Before switching accounts, go grab that Dock file from TM - com.apple.dock.db is its name, and it's in /Users/username/Library/Preferences
    3. Put the file somewhere you can find it easily - I suggest the Public folder
    4. Log out, then in as the second user
    5. Go get that file you grabbed from TM earlier on the other account.
    6. Now, what you want to do is put it into place, but the problem is permissions won't let you do that...
    7. So, to the Terminal we go.
    8. Enter a command of this form: sudo cp (drag the old file to the Terminal window) /Users/username/Library/Preferences/com.apple.dock.db
    9. Making the appropriate substitutions along the way... i.e. replace username with the short user name of the account you want to fix the Dock on.
    10. Then, just to be sure, a second command: sudo chown username /Users/username/Library/Preferences/com.apple.dock.db
    11. Finally, log out of the second admin account, and into your primary account. Dock should be restored.

Share This Page