从旧的配置文档中恢复重要数据

修订信息
  • 修订编号: 8199
  • 建立于
  • 创建者: Kemcy Best
  • 备注: WIP
  • 已审阅:
  • 已审阅:
  • 审核人: kmc
  • 已核准?
  • 这是当前最新的版本吗?
  • 可进行本地化:
修订原文
修订内容

Firefox的用户档案文件中存放了你所有的重要数据,例如书签、历史、Cookies和密码。本文解释了如何把这些文件复制到新的用户档案中,并列举了用户档案中重要的文件以及它们所对应的信息。

如果你的Firefox有问题,很多时候与其试图精确地找到解决方案,不如先新建一个用户档案文件并把重要的数据复制过去。这种方法使你可以从一个新的起点开始排查问题,而不会影响你原有的重要数据。


注意:问题常有可能出在你的首选项设置和扩展程序,但本文并不介绍如何复制这些文件。换句话说,按本文的方法进行排查时,你需要重新安装Firefox的扩展程序并配置Firefox。


备份你当前的用户档案文件

在开始前推荐你完整地把现有的Firefox用户档案文件备份下来以防不测。请查阅备份你的信息


创建新的Firefox用户档案文件

要创建新的Firefox用户档案文件,请查阅管理用户配置文件一文,特别是创建用户档案文件一节。


在用户档案文件夹之间复制文件

注意: Firefox 必须 处于关闭状态,否则不能进行文件的复制。
  1. 要打开你的用户档案文件夹:

    • 点击菜单按钮 Fx89menuButton ,再点击 帮助 并选择 更多故障排除信息 帮助 菜单中, 选择 更多故障排除信息 然后 故障调试信息 标签页会出现。
    • 应用程序概要 部分的 Profile 文件夹目录旁边,点击 打开文件夹在 Finder 中显示打开目录 按钮。含有您的配置文件夹窗口将打开。你的配置文件夹将打开。
    注意:如果您无法打开或使用 Firefox,您也可尝试 在不打开 Firefox 的情况下找到您的用户配置文件 中的指导。

  2. 点击 Firefox 菜单按钮 Fx89menuButton,然后选择 退出

    在屏幕顶部点击 Firefox 菜单,然后选择 退出 Firefox

    点击 Firefox 菜单 Fx89menuButton,然后选择 退出

  3. 右击按住control键点击 想要复制的文件,在弹出菜单中选择复制.
  4. 打开刚刚新建的Firefox的用户档案文件夹
  5. 右击按住control键点击 文件夹内部,并选择粘贴项目.

重复上面的步骤2至5把你想要的所有文件都复制到新的用户档案文件夹。

While copying your personal data from an old Firefox profile to a new Firefox profile, it is possible that you could copy over the file that is causing the problem you are trying to get rid of! The more files you copy over, the greater the chance of this happening. It is therefore recommended that:

  • You copy over only the minimal amount of files that contain your most important data that you simply can't live without.
  • You copy over a few files at a time, and then check that the problem you are trying to get rid of hasn't returned.


Your important data and their files

Bookmarks and Browsing History

  • places.sqlite

This file contains all your Firefox bookmarks and the list of websites you have previously visited. For more information see 创建和管理书签.

Passwords

Your passwords are stored in two different files, both of which are required:

  • key3.db - This file stores your key database for your passwords. To transfer saved passwords, you must copy this file along with the following file.
  • signons.sqlite - Saved passwords.
  • signons3.txt - Saved passwords

For more information see Password manager - Remember, delete and change saved passwords in Firefox.

Site-specific preferences

  • permissions.sqlite

This file stores many of your Firefox permissions that are decided on a per-site basis. For example, it stores which sites are allowed to, or blocked from setting cookies, installing extensions, showing images, displaying popups, etc.

Search engines

  • search.sqlite
  • \searchplugins\ folder

If you have installed any extra search engines then they will be in the \searchplugins\ folder. The search.sqlite file stores the order that your search engines appear in Firefox. For more information see Search bar - add, change and manage search engines on Firefox.

Personal dictionary

  • persdict.dat

This file stores any custom words you have added to Firefox's dictionary. If you have never added a custom word to the Firefox dictionary, then you will not have this file. For more information see 使用拼写检查.

Autocomplete history

  • formhistory.sqlite

This file remembers what you have searched for in the Firefox search bar and what information you have entered into forms on websites. For more information see 表单自动填写功能.

Cookies

  • cookies.sqlite

Cookie are used by websites for a variety of reasons, some of which include keeping you logged into a website you have previously logged into, remembering any preferences a website has allowed you to set, authenticating you as a person who has visited a specific website before, etc. For more information see Cookie.

Security certificate settings

  • cert8.db

This file stores all your security certificate settings and any SSL certificates you have imported into Firefox.

Download actions

  • mimeTypes.rdf

This file stores your preferences with respect to what Firefox does when it comes across known file types. For more information see 更改 Firefox 对点击或下载文件的动作.

User styles

  • \chrome\userChrome.css
  • \chrome\userContent.css

If they exist, these two files store user-defined changes to either how Firefox looks, or how certain websites or html elements look or act. Most people will not have these files. You may have two files in the \chrome\ folder called userChrome-example.css and userContent-example.css, but both these files can be safely ignored.




Based on information from Transferring data to a new profile - Firefox (mozillaZine KB)