为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Backup Profile

  • 4 个回答
  • 2 人有此问题
  • 2 次查看
  • 最后回复者为 cor-el

more options

Which files needs to backup your Profile? Is it %AppData%\Roaming\Mozilla\ or %AppData%\Local\Mozilla\  ? Is there an add-on that does this? Lastly, can anyone write a script so when you exit Firefox, it automatically backs up your profile? Thank you in advance.

Which files needs to backup your Profile? Is it %AppData%\Roaming\Mozilla\ or %AppData%\Local\Mozilla\ ? Is there an add-on that does this? Lastly, can anyone write a script so when you exit Firefox, it automatically backs up your profile? Thank you in advance.

所有回复 (4)

more options

The backup file is in Roaming. For specific instructions, follow this link: https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile

To back up your profile, first close Firefox if it is open and then copy the profile folder to another location. At the top of the Firefox window, click on the Firefox button and then select Exit Go to one level above your profile’s folder, i.e. to %APPDATA%\Mozilla\Firefox\Profiles\ Right-click on your profile folder (e.g. xxxxxxxx.default), and select Copy. Right-click the backup location (e.g. a USB-stick or a blank CD-RW disc), and select Paste.

If you need to restore your profile to a new installation, copy the files in your backup folder and use them to replace the files in the new installation. Don't copy the whole folder because the names of the old and new are different, and the new folder name is required.

Can't help with the script. I'd google that one. lol! Good luck and best regards

more options

There is an extension but, it isn't compatible with newer versions of Firefox.

Firefox backs-up your bookmarks each day automatically and you can configure Firefox to backup your bookmarks each time you exit.

As far as backing up your entire profile each time you exit, I don't do script either so, a simple .bat file added to Task Scheduler is what I would look into.

more options

This won't work, the password database is locked in some sort of hard coded way that the OS can't even bypass and prevents being opened or copied in any way at all. I'm kinda pissed that its a json file now rather than a database file.

more options

Only the profile folder in the root location (AppData\Roaming) is important.

Firefox uses two locations for the Firefox profile folder, so make sure to look in the correct location. Location used for the main profile that keeps your personal data (Root Directory on about:profiles).

  • C:\Users\<user>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile>\

Location used for the disk cache and other temporary files (Local Directory on about:profiles).

  • C:\Users\<user>\AppData\Local\Mozilla\Firefox\Profiles\<profile>\

You can backup files like these with Firefox closed to the current profile folder to recover specific data.

  • bookmarks and history: places.sqlite
  • bookmark backups: compressed .jsonlz4 JSON backups in the bookmarkbackups folder
  • cookies.sqlite for the Cookies
  • formhistory.sqlite for saved autocomplete Form Data
  • logins.json (passwords) and key4.db (58+) or key3.db (57 and older) (decryption key) for Passwords saved in the Password Manager
    if you only have key3.db then make sure to remove an existing key4.db
  • cert9.db (58+) or cert8.db (57 and older) for (intermediate) certificates stored in the Certificate Manager
    if you only have cert8.db then make sure to remove an existing cert9.db
  • persdict.dat for words you added to the spelling checker dictionary
  • permissions.sqlite for Permissions and possibly content-prefs.sqlite for other website specific data (Site Preferences)
  • sessionstore.jsonlz4 for open tabs and pinned tabs (see also the sessionstore-backups folder)

See also: