💾 Archived View for tilde.pink › ~tarial › gemlog › 20221115_backing_up_bookmarks_in_firefox.gmi captured on 2023-11-04 at 11:51:07. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
I have been wanting to make frequent backups of my bookmarks in Firefox for a while. I have found two methods that work for me.
Note that I use a linux system. If you use Windows, a Mac, or something else, your milage may vary with the methods described below.
Since Firefox version 3 (released June 17, 2008) bookmarks are not saved in a `bookmarks.html` file anymore. Instead, bookmarks are saved in a file called `places.sqlite`. This file can be found in your profile folder:
`~/.mozilla/firefox/*.default-release/places.sqlite`
To back this file up in an organized way you can move `places.sqlite` file out of this directory and into `~/Backup/`, for example, and create a symbolic link back into Firefox' profile directory. This makes a very easy way to back bookmarks up to a remote location, whether it is an external drive, a NAS, and/or cloud storage.
Note that `places.sqlite` is not only used to store bookmarks, but also annotations, favorite icons, input history, keywords, and browsing history. To see, and possibly modify, what is stored, you can use `sqlite3` on the command line, or a graphical sqlite browser such as DB Browser for SQLite.
See also:
https://kb.mozillazine.org/Profile_folder
https://kb.mozillazine.org/Places.sqlite
It is possible to automatically export Firefox' bookmarks to an HTML-file:
1. Browse to the page `about:config` (and accept the risks, if needed)
2. Find the setting `browser.bookmarks.autoExportHTML` and set it to `true`
Firefox will now automatically export the bookmarks to `bookmarks.html` in it's profile folder whenever the browser shuts down.
It is possible to change the location of this HTML-file:
3. On the `about:config` page, set the location of this file by adding or changing the `browser.bookmarks.file` option.
This option does not exist by default—you need to add it (as a string) if it's not already there. Set it to a location like `/home/tarial/Backup/bookmarks.html`, or `D:\Backup\bookmarks.html`.
See also:
https://kb.mozillazine.org/About:config
https://kb.mozillazine.org/Browser.bookmarks.autoExportHTML
https://kb.mozillazine.org/Browser.bookmarks.file
https://kb.mozillazine.org/Profile_folder
Published: 2022-11-15