比较修订
Back up and restore information in Firefox profiles
修订版本 51143:
由Tonnes于提交的修订 51143
修订版本 55728:
由PetjaTouru于提交的修订 55728
关键词:
backup files data
backup files data
搜索结果概要:
Firefox stores your personal information and settings in a profile folder. This article explains how to back up and restore this important data.
Firefox stores your personal information and settings in a profile folder. This article explains how to back up and restore this important data.
内容:
Mozilla Firefox stores all your personal settings, such as bookmarks, passwords and extensions, in a '''[[Profiles - Where Firefox stores your bookmarks, passwords and other user data|profile]] folder''' on your computer, in a location separate from the Firefox program. This article explains how to back up your profile, restore it, or move your profile to a new location or computer.
*To restore or move selected information instead of the entire profile, see [[Recovering important data from an old profile]].
* '''Just Bookmarks?''' For backing up, restoring, or moving your bookmarks (not other data), see [[Restore bookmarks from backup or move them to another computer]].
__TOC__
= Locate your profile folder =
{for win}
The default location of the Firefox profile folder is '''{filepath %APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\}'''.
* {filepath %APPDATA%} is shorthand for the {for win7,win8}{filepath C:\Users\<username>\AppData\Roaming\}{/for}{for winxp}{filepath C:\Documents and Settings\<username>\Application Data\}{/for}{/for} folder, which depends on your Windows user account name.
{/for}
{for mac}
The default location of the Firefox profile folder is '''{filepath ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/}'''.
{/for}
{for linux}
The default location of the Firefox profile folder is '''{filepath ~/.mozilla/firefox/xxxxxxxx.default/}'''.
{/for}
* {filepath xxxxxxxx} represents a random string of 8 characters.
You can locate your profile folder using these instructions:
{for win7}
# Click the Windows {button Start} button, and type {filepath %APPDATA%\Mozilla\Firefox\Profiles\} in the search box at bottom of the Start menu, without pressing Enter.
# A list of profiles will appear at the top of the Start menu. You can click on any of the profiles (e.g. xxxxxxxx.default) to open it with Windows Explorer.
[[Image:98ed7b83d09ef2c94285fcf99165ff31-1258904886-852-1.png]]
{/for}
{for winxp}
# Click the Windows {button Start} button, and select {menu Run…}.<br/> <br/>[[Image:win-run.png]]<br/><br/>
# Type in {filepath %APPDATA%\Mozilla\Firefox\Profiles\} and then click {button OK}.<br/> <br/>[[Image:win-rundialog.png]]
Windows Explorer will open the {filepath Profiles} folder, which contains a folder for each profile.
{/for}
{for win8}
#Open the Charms and select {button Search}.
#Search for '''Run''' in ''Apps''.
#Select Run in the search results and you will be taken to the Desktop with the Run app open.
#In the Run app, type '''{filepath %APPDATA%\Mozilla\Firefox\Profiles\}''' and then press {key Enter}. Windows Explorer will open the {filepath Profiles} folder, which contains a folder for each profile.
{/for}
{for mac}
# Click the '''Finder''' icon in the dock.
# On the menu bar, click the {menu Go} menu and select {menu Go to Folder…}.
# In the '''Go to Folder''' window, paste in this text: '''~/Library/Application Support/Firefox/Profiles''' and then click {button Go}.
# A window will open containing profile folders.
# Double-click the folder with “default” in the name to open it.
{/for}
{for linux}
# '''(Ubuntu)''' Click the {menu Places} menu on the top right of the screen and select {menu Home Folder}. A File Browser window will appear.
# Click the {menu View} menu and select {menu Show Hidden Files} if it isn't already checked.
# Double click the folder marked {filepath .mozilla}.
# Double click the folder marked {filepath firefox}. Your profile folders are within this folder.
{/for}
= Backing up your profile =
To back up your profile, first close Firefox if it is open and then copy the profile folder to another location.
# [[T:closeFirefox]]
# Locate your profile folder, as explained above.
# Go to one level above your profile's folder, i.e. to {filepath {for win}%APPDATA%\Mozilla\Firefox\Profiles\{/for}{for mac}~/Library/Application Support/Firefox/Profiles/{/for}{for linux}~/.mozilla/firefox/{/for}}
# {for win,linux}Right-click{/for}{for mac}Hold down the {key Ctrl} key while you click{/for} on your profile folder (e.g. {filepath xxxxxxxx.default}), and select {menu Copy}.
# {for win,linux}Right-click{/for}{for mac}Hold down the {key Ctrl} key while you click{/for} the backup location (e.g. a USB-stick or a blank CD-RW disc), and select {menu Paste{for mac} item{/for}}.
= Restoring a profile backup =
# [[T:closeFirefox]]
# If your existing profile folder and profile backup folder have the same name, simply replace the existing profile folder with the profile backup, then start Firefox. {note}'''Important:''' The profile folder names must match exactly for this to work, including the random string of 8 characters. If the names do not match or if you are restoring a backup to a different location, follow the steps below.{/note}
== Restoring to a different location ==
If the profile folder names do not match or if you want to move or restore a profile to a different location, do the following:
# Completely close Firefox, as explained above.
#[[Use the Profile Manager to create and remove Firefox profiles|Use the Firefox Profile Manager to create a new profile]] in your desired location, then exit the Profile Manager. {note}'''Note:''' If you just installed Firefox on a new computer, you can use the default profile that is automatically created when you first run Firefox, instead of creating a new profile.{/note}
#Locate the backed up profile folder on your hard drive or backup medium (e.g., your USB-stick).
#Open the profile folder backup (e.g., the {filepath xxxxxxxx.default} backup).
#Copy the entire ''contents'' of the profile folder backup, such as the {filepath mimeTypes.rdf} file, {filepath prefs.js} file, {filepath bookmarkbackups} folder, etc.
#Locate and open the new profile folder as explained above and then close Firefox (if open).
#Paste the contents of the backed up profile folder into the new profile folder, overwriting existing files of the same name.
#Start Firefox.
[[Template:ShareArticle|link=http://mzl.la/LHJo6V]]
Mozilla Firefox stores all your personal settings, such as bookmarks, passwords and extensions, in a '''[[Profiles - Where Firefox stores your bookmarks, passwords and other user data|profile]] folder''' on your computer, in a location separate from the Firefox program. This article explains how to back up your profile, restore it, or move your profile to a new location or computer.
*To restore or move selected information instead of the entire profile, see [[Recovering important data from an old profile]].
* '''Just Bookmarks?''' For backing up, restoring, or moving your bookmarks (not other data), see [[Restore bookmarks from backup or move them to another computer]].
__TOC__
= Locate your profile folder =
[[T:OpenProfileFolder]]
= Backing up your profile =
To back up your profile, first close Firefox if it is open and then copy the profile folder to another location.
# [[T:closeFirefox]]
# Locate your profile folder, as explained above.
# Go to one level above your profile's folder, i.e. to {filepath {for win}%APPDATA%\Mozilla\Firefox\Profiles\{/for}{for mac}~/Library/Application Support/Firefox/Profiles/{/for}{for linux}~/.mozilla/firefox/{/for}}
# {for win,linux}Right-click{/for}{for mac}Hold down the {key Ctrl} key while you click{/for} on your profile folder (e.g. {filepath xxxxxxxx.default}), and select {menu Copy}.
# {for win,linux}Right-click{/for}{for mac}Hold down the {key Ctrl} key while you click{/for} the backup location (e.g. a USB-stick or a blank CD-RW disc), and select {menu Paste{for mac} item{/for}}.
= Restoring a profile backup =
# [[T:closeFirefox]]
# If your existing profile folder and profile backup folder have the same name, simply replace the existing profile folder with the profile backup, then start Firefox. {note}'''Important:''' The profile folder names must match exactly for this to work, including the random string of 8 characters. If the names do not match or if you are restoring a backup to a different location, follow the steps below.{/note}
== Restoring to a different location ==
If the profile folder names do not match or if you want to move or restore a profile to a different location, do the following:
# Completely close Firefox, as explained above.
#[[Use the Profile Manager to create and remove Firefox profiles|Use the Firefox Profile Manager to create a new profile]] in your desired location, then exit the Profile Manager. {note}'''Note:''' If you just installed Firefox on a new computer, you can use the default profile that is automatically created when you first run Firefox, instead of creating a new profile.{/note}
#Locate the backed up profile folder on your hard drive or backup medium (e.g., your USB-stick).
#Open the profile folder backup (e.g., the {filepath xxxxxxxx.default} backup).
#Copy the entire ''contents'' of the profile folder backup, such as the {filepath mimeTypes.rdf} file, {filepath prefs.js} file, {filepath bookmarkbackups} folder, etc.
#Locate and open the new profile folder as explained above and then close Firefox (if open).
#Paste the contents of the backed up profile folder into the new profile folder, overwriting existing files of the same name.
#Start Firefox.
[[Template:ShareArticle|link=http://mzl.la/LHJo6V]]