从旧的配置文档中恢复重要数据
修订信息
- 修订编号: 8117
- 创建于:
- 创建者: tinlok
- 备注:
- 已审阅: 否
- 可进行本地化: 否
修订原文
修订内容
A Firefox profile stores all of your important data, such as your bookmarks, history, cookies, and passwords. This article explains how to copy the files to a new profile, lists important files in the profile and describes what information is stored in these files.
If you are having a problem with Firefox then sometimes, rather than trying to find and fix the exact cause of the problem, it is easier just to make a new Firefox profile and copy your most important data over to it. Making a new Firefox profile and then copying over certain files gives you a fresh start while retaining your important personal data.
目录
Back up your current profile
Before starting it is recommended that you make a complete backup of your existing Firefox profile in case something goes wrong. Please read the 备份你的信息 article for how to do this.
Create a new Firefox profile
For information on how to create a brand new Firefox profile, please read the 管理用户配置文件 article, paying specific attention to the Creating a profile section.
Copying files between profile folders
- Note: Firefox must be closed down while copying files between profile folders.
-
要打开你的用户档案文件夹:
- 点击菜单按钮
,再点击 并选择 。从 然后,故障调试信息 标签页会出现。 菜单中, 选择 。
- 在 应用程序概要 部分的 配置文件夹配置目录旁边,点击 按钮。含有配置文件夹的窗口将打开。配置文件夹将打开。
注意:如果点击 您无法打开或使用 Firefox,您也可尝试 时,Firefox 显示错误或者如果在不打开 Firefox 的情况下找到您的用户配置文件 中的指导。 - 点击菜单按钮
-
点击 Firefox 菜单按钮
,然后选择 。
在屏幕顶部点击 Firefox 菜单,然后选择 。
点击 Firefox 菜单
,然后选择 。
- 右击按住control键点击 on a file you want to copy and choose .
- Open the new Firefox profile folder.
- 右击按住control键点击 inside the profile folder and choose .
Repeat steps 2-5 for each file you wish to transfer over to your new profile folder.
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, change and import 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)