搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I merge an old browsing history file into the current one?

  • 4 回覆
  • 11 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

Several weeks ago, the C: drive on my PC was replaced and Firefox was recreated before I could copy over my old profile to the new drive. I now want to recover the old browsing history, but of course the new profile already has its own, more recent, places.sqlite file that I do not want to lose.

How can I merge the two histories?

Several weeks ago, the C: drive on my PC was replaced and Firefox was recreated before I could copy over my old profile to the new drive. I now want to recover the old browsing history, but of course the new profile already has its own, more recent, ''places.sqlite'' file that I do not want to lose. How can I merge the two histories?

被選擇的解決方法

That is not possible.
You can't merge the history.

A way to achieve this would be to use a separate profile and copy the places.sqlite file to that profile (delete an existing places.sqlite-journal file).
Use Copy and Paste to copy the history items to a bookmarks folder in the Bookmarks Menu folder.
Export the bookmarks to an HTML file and import that HTML file in the current Firefox profile.

從原來的回覆中察看解決方案 👍 2

所有回覆 (4)

more options

選擇的解決方法

That is not possible.
You can't merge the history.

A way to achieve this would be to use a separate profile and copy the places.sqlite file to that profile (delete an existing places.sqlite-journal file).
Use Copy and Paste to copy the history items to a bookmarks folder in the Bookmarks Menu folder.
Export the bookmarks to an HTML file and import that HTML file in the current Firefox profile.

more options

or set up firefox sync in the two profiles & sync the history data...

more options

I also found another solution: Firefox has an addon called SQLite Manager The history and bookmarks records are kept in a common SQLite database that can be edited with this addon. It can also import and export data from or to other tables.

I can import data from an old backup of places.sqlite that contains the links I am looking for and merge it into the current one. QED

more options

You can easily corrupt places.sqlite when you move items from history to bookmarks with the SQLite Manager extension. They both use different fields and tables and you would also need to rebuild the indexes.