為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

backup/restore versus import/export html

  • 4 回覆
  • 1 有這個問題
  • 47 次檢視
  • 最近回覆由 user700204

more options

So I want to archive/backup my bookmarks. I see that I can "Backup" and "Restore" to/from a json file, or I can "Export Bookmarks to HTML" and then "Import Bookmarks from HTML". Moz support suggests doing the former, though I know the latter works. Why would I do one instead of the other? FWIW, the html file I get is 8MB, while the json file is just 1MB. This seems positively screwy to have two completely separate ways of doing backups. What are these functions intended to be for? Maybe these are intended to allow porting bookmarks to/from different browsers?

So I want to archive/backup my bookmarks. I see that I can "Backup" and "Restore" to/from a json file, or I can "Export Bookmarks to HTML" and then "Import Bookmarks from HTML". Moz support suggests doing the former, though I know the latter works. Why would I do one instead of the other? FWIW, the html file I get is 8MB, while the json file is just 1MB. This seems positively screwy to have two completely separate ways of doing backups. What are these functions intended to be for? Maybe these are intended to allow porting bookmarks to/from different browsers?

被選擇的解決方法

For purposes of exchanging with other browsers, the HTML format is standard.

There is an important difference between "Restore" and "Import":

  • Restore wipes your existing bookmarks
  • Import adds to your existing bookmarks

So having your choice of formats could be useful in different situations.

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

選擇的解決方法

For purposes of exchanging with other browsers, the HTML format is standard.

There is an important difference between "Restore" and "Import":

  • Restore wipes your existing bookmarks
  • Import adds to your existing bookmarks

So having your choice of formats could be useful in different situations.

more options

That's very clear. Thank you. So Backup/Restore is really for wholesale bookmark backup, and Export/Import is really just for exchanging bookmarks with other browsers, adding bookmarks, and I guess if you want to look at them in a convenient file form. I guess that's why, for purposes of backing up bookmarks in an archival form, Moz support doesn't even refer to the latter.

more options

danll said

... So Backup/Restore is really for wholesale bookmark backup, and Export/Import is really just for exchanging bookmarks with other browsers, adding bookmarks, and I guess if you want to look at them in a convenient file form. I guess that's why, for purposes of backing up bookmarks in an archival form, Moz support doesn't even refer to the latter.

There's more to the difference than that. The bookmarks.html files contain the bookmark Favicons for the saved bookmarks added to Firefox in Firefox 0.9 in 2004; didn't save those images beyond the current session prior to that time. The .json backup files don't contain those images, Firefox will save them all over again as each bookmark is used for the first time after the user "restores" their bookmarks.

Also, the bookmarks.html format doesn't contain "Tags" data which the .json backups do have.

For users who count on the Favicon images to 'recognize' their bookmarks, as when the user removes the name and only has the images to tell one bookmark from another, doing a "restore" can be an aggravating event if that user doesn't know that will happen.

Overall, the bookmarks.html format is ancient, dating to the original Netscape of the mid-1990's, and not used for storage / usage of bookmarks since the SQLite bookmarks system came into play in Firefox 10 years ago with Firefox 3.0. It's now a legacy format for cross-browser exchange as Jefferson mentioned, and being able to view them in any browser like a "local webpage" without much adornment.

more options

Thank you. This addresses a question I just posted here a few days ago, about WHY IN THE HELL IS MY EXPORTED BOOKMARKS FILE 8MB! You look at the html in a browser, and nothing big-ish comes up. But you look at it in a text editor, and most of it is big png files. What the .... ? Yep, those are just ginormous Favicons, which I do not need.

So archiving my bookmarks (and leaving out what I consider to be Favicon debris), I need to use "Backup", NOT "Export".