Safari erased my history, how can I restore it?

My computer was being unresponsive earlier today and out of frustration, I shut it down manually. Once it was back on, I realized that my entire Safari history had been erased. I've been researching how to fix this all night and doing so led me to discover that the metadata for my history is still on the computer, but I don't know what to do with it. I don't have Time Machine, so I can't restore it that way, and I'm generally pretty clueless about how computers work. Is there any hope for my history to be recovered?

My computer is a 13-inch MacBook Pro and I have OS X 10.8.5. Thank you for any help.

MacBook Pro, OS X Mountain Lion (10.8.5)

Posted on Jan 23, 2015 9:49 PM

Reply
3 replies

Jan 24, 2015 5:04 PM in response to hemmons1

Safari deletes history items automatically after a preset interval. If you have backups going back far enough, you can restore an older version of the history.

First, from the Safari menu bar, select

Safari Preferences... Remove history items: Manually

Triple-click anywhere in the line below on this page to select it, then copy it to the Clipboard by pressing the key combination command-C:

~/Library/Safari

Quit Safari.

Select

Go Go to Folder

from the Finder menu bar. Paste into the text box that opens by pressing command-V, then press return.

A folder window should open. Inside that folder, there should be a file named

History.db (OS X 10.10 or later)

or

History.plist (OS X 10.9.5 or earlier)

Move that file to the Desktop.

Restore the file with that name from a backup that predates the changes. If you back up with Time Machine, enter it and scroll back to a snapshot of the open folder.

When you relaunch Safari, the old history should appear. When you're done with it, you can revert the change by replacing the history file with the one you moved to the Desktop. Otherwise, delete that file.

Revert the change in Safari's preferences to whatever you want it to be. If you leave it on Manually, the history file will grow without limit and may eventually slow down the browser.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari erased my history, how can I restore it?

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