how to restore from time machine all my user preferences
All my Preferences/settings have defaulted to factory settings e.g. Safari bookmarks, history, mail has no accounts, tray apps are all the defaults etc etc This happened after updating OS X today.
I have a time machine and an external backup, but don't know which files to restore.
iMac, OS X Yosemite (10.10)