比較變更

備份與還原 Firefox 設定檔

修訂版本 24653:

由 petercpg 於 的編修 24653

修訂版本 25050:

由 petercpg 於 的編修 25050

關鍵詞:

備份 文件 使用者設定檔 資料
備份 文件 使用者設定檔 資料

搜尋結果概要:

Mozilla Firefox 儲存你的所有個人設定,例如書籤、密碼、套件等,在電腦中與 Firefox 程式不同位置的使用者設定檔資料夾中。這篇文章是解釋該如何被備份、復原、或是移動你的使用者設定檔到新的位置或另一台電腦上。
Mozilla Firefox 儲存你的所有個人設定,例如書籤、密碼、套件等,在電腦中與 Firefox 程式不同位置的使用者設定檔資料夾中。這篇文章是解釋該如何被備份、復原、或是移動你的使用者設定檔到新的位置或另一台電腦上。

內容:

Mozilla Firefox 儲存你的所有個人設定,例如書籤、密碼、套件等,在電腦中與 Firefox 程式不同位置的 '''[[Profiles|使用者設定檔]] 資料夾''' 中。這篇文章是解釋該如何被備份、復原、或是移動你的使用者設定檔到新的位置或另一台電腦上。 * '''只要書籤?''' 想要備份、復原、或移動你的書籤(不包含其他資料),請看 [[Backing up and restoring bookmarks]]。 __TOC__ = 找到你的使用者設定檔 = {for win} Firefox的使用者設定檔的預設位置是 '''{filepath <nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\}'''。 * {filepath <nowiki>%</nowiki>APPDATA%} 是以下路徑的簡短記法{filepath C:\Users\<username>\AppData\Roaming\} 資料夾 (Windows 7/Vista) 或 {filepath C:\Documents and Settings\<username>\Application Data\} 資料夾 (Windows XP/2000),其中和你的 Windows 使用者帳號名稱有關。 {/for} {for mac} Firefox 使用者設定檔的預設位置是 '''{filepath ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/}'''。 {/for} {for linux} Firefox的使用者設定檔的預設位置是 '''{filepath ~/.mozilla/firefox/xxxxxxxx.default/}'''。 {/for} * {filepath xxxxxxxx} 代表一個 8 字元的隨機字串。 你可以藉由使用以下的指令找到你的使用者設定檔: {for fx35} == Firefox 3.6 == #{for win,linux}在 Firefox 視窗的最頂端{/for}{for mac}在選單列{/for},點擊 {menu 說明} 選單然後選擇 {menu 排難排解資訊},疑難排解資訊視窗將會打開。 # 在 '''應用程式一般資訊''' 裡面,點擊 {button {for win,linux}開啟設定檔資料夾{/for}{for mac}顯示於 Finder{/for}}。這個動作將會打開使用者設定檔(例如 {filepath xxxxxxxx.default} 資料夾)。 {note}'''注意:'''如果你無法開啟 Firefox,請使用下面給 Firefox 3.5 的指示。{/note} == Firefox 3.5 == {/for} {for win} == Windows 7 和 Vista == # 點擊 Windows {button 開始} 按鈕,然後在開始選單底部的搜索框輸入 {filepath <nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\} ,不用按 Enter 鍵。 # 一串的使用者設定檔會顯現在開始選單的最上方。你可以點擊任意的使用者設定檔(例如 xxxxxxxx.default)以 Windows Explorer 將它開啟。 <br/> <br/>[[Image:98ed7b83d09ef2c94285fcf99165ff31-1258904886-852-1.png]] == Windows 2000 and XP == # 點擊 Windows {button 開始}按鈕,然後選擇 {menu 執行...}.<br/> <br/>[[Image:win-run.png]]<br/> # 輸入{filepath <nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\} 之後點擊 {button 確定}。<br/> <br/>[[Image:win-rundialog.png]] Windows Explorer 將會打開 {filepath Profiles} 資料夾,其中包含每個使用者設定檔的個別資料夾。 {/for} {for mac} # 點擊 Dock 中的 '''Finder''' 圖示。 # 在主選單上點擊 {menu Go} 選單然後選擇 {menu Go to Folder...} # 在 '''Go to Folder''' 視窗,貼入以下文字: '''~/Library/Application Support/Firefox/Profiles''' 然後點擊 {button Go} # 一個視窗將會開啟使用者設定檔所在資料夾。 # 雙擊名稱有 “default” 的使用者設定檔來開啟它 {/for} {for linux} # '''(Ubuntu)''' 在螢幕左上角點擊 {menu Places} 選單然後選擇 {menu Home Folder},將會打開一個檔案瀏覽視窗。 # 點擊 {menu View} 選單,然後選擇 {menu Show Hidden Files}(如果它尚未被打勾)。 # 雙擊寫著 {filepath .mozilla} 的資料夾。 # 雙擊寫著 {filepath firefox} 的資料夾,你的使用者設定檔就在這個資料夾裡。 {/for} = 備份你的使用者設定檔 = 為了要備份你的使用者設定檔,首先要關閉開著的 Firefox,接著複製使用者設定檔到另一個位置。 # [[T:closeFirefox]] # 如同上面所述,找到你的使用者設定檔。 # 到你的使用者設定檔所在的上一層資料夾,例如到 {filepath {for win}<nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\{/for}{for mac}~/Library/Application Support/Firefox/Profiles/{/for}{for linux}~/.mozilla/firefox/{/for}} # 在你的使用者設定檔上(例如, {filepath xxxxxxxx.default}){for win,linux}單擊右鍵{/for}{for mac}按住 {key Ctrl}鍵點擊{/for},然後選擇 {menu Copy}。 # 在要備份的位置(例如 USB 隨身碟或空白 CD-RW 光碟){for win,linux}單擊右鍵{/for}{for mac}按住 {key Ctrl} 鍵點擊{/for},然後選擇 {menu 貼上{for mac}項目{/for}}。 = 還原使用者設定檔備份 = # [[T:closeFirefox]] # 如果你現有與備份的使用者設定檔擁有相同檔名,只需將備份的使用者設定檔取代現有的使用者設定檔,然後重新啟動 Firefox。{note}'''重要:''' 使用者設定檔的名稱(包含 8 字元的隨機字串)必須完全符合才能這麼做。如果名稱不一樣,或是你要復原備份檔到不同的位置,請看下面的步驟。{/note} == 還原到不同的位置 == 如果使用者設定檔的名稱不符合或是你想移動或還原到不同位置,請做以下步驟: # 如同上面所解釋的,請完全關閉 Firefox。 #在你所想要的地方 [[Managing profiles|使用 Firefox 使用者設定檔管理員來建立一個新的使用者]],然後離開使用者設定檔管理員。{note}'''注意:''' 如果你才剛在新電腦上安裝 Firefox,你可以使用在你第一次開啟 Firefox 時自動建立的使用者,而不用重新建立。{/note} #在你的硬碟或備份媒介(例如你的 USB)找到備份的使用者設定檔。 #打開備份的使用者設定檔(例如, {filepath xxxxxxxx.default})資料夾。 #複製備份的使用者設定檔資料夾中的所有內容,例如 {filepath mimeTypes.rdf} 檔案、 {filepath prefs.js} 檔案、 {filepath bookmarkbackups} 資料夾……等。 # 如上面所述的,找到並打開新的使用者設定檔,並將所有打開的 Firefox 關閉。 #貼上備份的使用者設定檔內容到新的使用者設定檔資料夾,並覆蓋現有相同名稱的檔案。 #啟動 Firefox。 <!-- Removing per https://support.mozilla.com/kb/Best+practices+for+Support+Documents == 復原到不同位置 - 高等技巧 == {for win} 除了上述步驟,進階用戶可能偏好以下的方法: #找到你的硬碟或備份媒介(例如你的 USB)裡備份的使用者設定檔,然後複製到硬碟。任何位置都可以,但是建議你將檔案放在第一段所解釋的使用者設定檔預設位置。 #雙擊在文字編輯器裡打開 {filepath profiles.ini}。這個檔案位在 Firefox 的 application data 資料夾裡: **Windows 7 and Vista,路徑是 {filepath C:\Users\''<username>''\AppData\Roaming\Mozilla\Firefox\Profiles.ini} **Windows XP/2000,路徑是 {filepath C:\Documents and Settings\''<username>''\Application Data\Mozilla\Firefox\Profiles.ini} #在 {filepath profiles.ini} 找到你剛剛移動的使用者設定檔的條目。將 {pref Path=} 修改成新的位置。 #將這行的 {pref IsRelative=1} 改成 {pref IsRelative=0}。 #再檢查一次所做的變更,然後儲存 {filepath profiles.ini}。 +'''{filepath profiles.ini}範例:'''如果你複製名稱是 {filepath 646a7374.default} 的使用者設定檔,然後將它放在 {filepath C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\},那麼你的 {filepath profiles.ini} 檔案將看起來像這樣: + +<code>[General] StartWithLastProfile=1 [Profile0] Name=Default IsRelative=0 Path=C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\\646a7374.default</code> + #啟動 Firefox。 {/for} {for mac,linux} 除了上述步驟,進階用戶可能偏好以下的方法: #找到你的硬碟或備份媒介(例如你的 USB)裡備份的使用者設定檔,然後複製到硬碟。任何位置都可以,但是建議你將檔案放在第一段所解釋的使用者設定檔預設位置。 #雙擊在文字編輯器裡打開 {filepath profiles.ini}。這個檔案位於 {for linux}{filepath ~/.mozilla/firefox/profiles.ini}{/for}{for mac}{filepath ~/Library/Application Support/Firefox/Profiles.ini}{/for} 中。 #在 {filepath profiles.ini} 找到你剛剛移動的使用者設定檔的條目。將 {pref Path=} 修改成新的位置。 #將這行的 {pref IsRelative=1} 改成 {pref IsRelative=0}。 #再檢查一次所做的變更,然後儲存 {filepath profiles.ini}。 #啟動 Firefox。 {/for} -->
Mozilla Firefox 儲存你的所有個人設定,例如書籤、密碼、套件等,在電腦中與 Firefox 程式不同位置的 '''[[Profiles|使用者設定檔]] 資料夾''' 中。這篇文章是解釋該如何被備份、復原、或是移動你的使用者設定檔到新的位置或另一台電腦上。 * '''只要書籤?''' 想要備份、復原、或移動你的書籤(不包含其他資料),請看 [[Backing up and restoring bookmarks]]。 __TOC__ = 找到你的使用者設定檔 = {for win} Firefox的使用者設定檔的預設位置是 '''{filepath <nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\xxxxxxxx.default\}'''。 * {filepath <nowiki>%</nowiki>APPDATA%} 是以下路徑的簡短記法{filepath C:\Users\<username>\AppData\Roaming\} 資料夾 (Windows 7/Vista) 或 {filepath C:\Documents and Settings\<username>\Application Data\} 資料夾 (Windows XP/2000),其中和你的 Windows 使用者帳號名稱有關。 {/for} {for mac} Firefox 使用者設定檔的預設位置是 '''{filepath ~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/}'''。 {/for} {for linux} Firefox的使用者設定檔的預設位置是 '''{filepath ~/.mozilla/firefox/xxxxxxxx.default/}'''。 {/for} * {filepath xxxxxxxx} 代表一個 8 字元的隨機字串。 你可以藉由使用以下的指令找到你的使用者設定檔: {for fx35} == Firefox 3.6 == #{for win,linux}在 Firefox 視窗的最頂端{/for}{for mac}在選單列{/for},點擊 {menu 說明} 選單然後選擇 {menu 排難排解資訊},疑難排解資訊視窗將會打開。 # 在 '''應用程式一般資訊''' 裡面,點擊 {button {for win,linux}開啟設定檔資料夾{/for}{for mac}顯示於 Finder{/for}}。這個動作將會打開使用者設定檔(例如 {filepath xxxxxxxx.default} 資料夾)。 {note}'''注意:'''如果你無法開啟 Firefox,請使用下面給 Firefox 3.5 的指示。{/note} == Firefox 3.5 == {/for} {for win} == Windows 7 和 Vista == # 點擊 Windows {button 開始} 按鈕,然後在開始選單底部的搜索框輸入 {filepath <nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\} ,不用按 Enter 鍵。 # 一串的使用者設定檔會顯現在開始選單的最上方。你可以點擊任意的使用者設定檔(例如 xxxxxxxx.default)以 Windows Explorer 將它開啟。 <br/> <br/>[[Image:98ed7b83d09ef2c94285fcf99165ff31-1258904886-852-1.png]] == Windows 2000 and XP == # 點擊 Windows {button 開始}按鈕,然後選擇 {menu 執行...}.<br/> <br/>[[Image:win-run.png]]<br/> # 輸入{filepath <nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\} 之後點擊 {button 確定}。<br/> <br/>[[Image:win-rundialog.png]] Windows Explorer 將會打開 {filepath Profiles} 資料夾,其中包含每個使用者設定檔的個別資料夾。 {/for} {for mac} # 點擊 Dock 中的 '''Finder''' 圖示。 # 在主選單上點擊 {menu Go} 選單然後選擇 {menu Go to Folder...} # 在 '''Go to Folder''' 視窗,貼入以下文字: '''~/Library/Application Support/Firefox/Profiles''' 然後點擊 {button Go} # 一個視窗將會開啟使用者設定檔所在資料夾。 # 雙擊名稱有 “default” 的使用者設定檔來開啟它 {/for} {for linux} # '''(Ubuntu)''' 在螢幕左上角點擊 {menu Places} 選單然後選擇 {menu Home Folder},將會打開一個檔案瀏覽視窗。 # 點擊 {menu View} 選單,然後選擇 {menu Show Hidden Files}(如果它尚未被打勾)。 # 雙擊寫著 {filepath .mozilla} 的資料夾。 # 雙擊寫著 {filepath firefox} 的資料夾,你的使用者設定檔就在這個資料夾裡。 {/for} = 備份你的使用者設定檔 = 為了要備份你的使用者設定檔,首先要關閉開著的 Firefox,接著複製使用者設定檔到另一個位置。 # [[T:closeFirefox]] # 如同上面所述,找到你的使用者設定檔。 # 到你的使用者設定檔所在的上一層資料夾,例如到 {filepath {for win}<nowiki>%</nowiki>APPDATA%\Mozilla\Firefox\Profiles\{/for}{for mac}~/Library/Application Support/Firefox/Profiles/{/for}{for linux}~/.mozilla/firefox/{/for}} # 在你的使用者設定檔上(例如, {filepath xxxxxxxx.default}){for win,linux}單擊右鍵{/for}{for mac}按住 {key Ctrl}鍵點擊{/for},然後選擇 {menu Copy}。 # 在要備份的位置(例如 USB 隨身碟或空白 CD-RW 光碟){for win,linux}單擊右鍵{/for}{for mac}按住 {key Ctrl} 鍵點擊{/for},然後選擇 {menu 貼上{for mac}項目{/for}}。 = 還原使用者設定檔備份 = # [[T:closeFirefox]] # 如果你現有與備份的使用者設定檔擁有相同檔名,只需將備份的使用者設定檔取代現有的使用者設定檔,然後重新啟動 Firefox。{note}'''重要:''' 使用者設定檔的名稱(包含 8 字元的隨機字串)必須完全符合才能這麼做。如果名稱不一樣,或是你要復原備份檔到不同的位置,請看下面的步驟。{/note} == 還原到不同的位置 == 如果使用者設定檔的名稱不符合或是你想移動或還原到不同位置,請做以下步驟: # 如同上面所解釋的,請完全關閉 Firefox。 #在你所想要的地方 [[Managing profiles|使用 Firefox 使用者設定檔管理員來建立一個新的使用者]],然後離開使用者設定檔管理員。{note}'''注意:''' 如果你才剛在新電腦上安裝 Firefox,你可以使用在你第一次開啟 Firefox 時自動建立的使用者,而不用重新建立。{/note} #在你的硬碟或備份媒介(例如你的 USB)找到備份的使用者設定檔。 #打開備份的使用者設定檔(例如, {filepath xxxxxxxx.default})資料夾。 #複製備份的使用者設定檔資料夾中的所有內容,例如 {filepath mimeTypes.rdf} 檔案、 {filepath prefs.js} 檔案、 {filepath bookmarkbackups} 資料夾……等。 # 如上面所述的,找到並打開新的使用者設定檔,並將所有打開的 Firefox 關閉。 #貼上備份的使用者設定檔內容到新的使用者設定檔資料夾,並覆蓋現有相同名稱的檔案。 #啟動 Firefox。 <!-- Removing per https://support.mozilla.com/kb/Best+practices+for+Support+Documents == 復原到不同位置 - 高等技巧 == {for win} 除了上述步驟,進階用戶可能偏好以下的方法: #找到你的硬碟或備份媒介(例如你的 USB)裡備份的使用者設定檔,然後複製到硬碟。任何位置都可以,但是建議你將檔案放在第一段所解釋的使用者設定檔預設位置。 #雙擊在文字編輯器裡打開 {filepath profiles.ini}。這個檔案位在 Firefox 的 application data 資料夾裡: **Windows 7 and Vista,路徑是 {filepath C:\Users\''<username>''\AppData\Roaming\Mozilla\Firefox\Profiles.ini} **Windows XP/2000,路徑是 {filepath C:\Documents and Settings\''<username>''\Application Data\Mozilla\Firefox\Profiles.ini} #在 {filepath profiles.ini} 找到你剛剛移動的使用者設定檔的條目。將 {pref Path=} 修改成新的位置。 #將這行的 {pref IsRelative=1} 改成 {pref IsRelative=0}。 #再檢查一次所做的變更,然後儲存 {filepath profiles.ini}。 +'''{filepath profiles.ini}範例:'''如果你複製名稱是 {filepath 646a7374.default} 的使用者設定檔,然後將它放在 {filepath C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\},那麼你的 {filepath profiles.ini} 檔案將看起來像這樣: + +<code>[General] StartWithLastProfile=1 [Profile0] Name=Default IsRelative=0 Path=C:\Users\David\AppData\Roaming\Mozilla\Firefox\Profiles\\646a7374.default</code> + #啟動 Firefox。 {/for} {for mac,linux} 除了上述步驟,進階用戶可能偏好以下的方法: #找到你的硬碟或備份媒介(例如你的 USB)裡備份的使用者設定檔,然後複製到硬碟。任何位置都可以,但是建議你將檔案放在第一段所解釋的使用者設定檔預設位置。 #雙擊在文字編輯器裡打開 {filepath profiles.ini}。這個檔案位於 {for linux}{filepath ~/.mozilla/firefox/profiles.ini}{/for}{for mac}{filepath ~/Library/Application Support/Firefox/Profiles.ini}{/for} 中。 #在 {filepath profiles.ini} 找到你剛剛移動的使用者設定檔的條目。將 {pref Path=} 修改成新的位置。 #將這行的 {pref IsRelative=1} 改成 {pref IsRelative=0}。 #再檢查一次所做的變更,然後儲存 {filepath profiles.ini}。 #啟動 Firefox。 {/for} -->

回到歷史版本