How to backup/export bookmarks via command line or BAT
Issue
I have a problem with my bookmarks, cookies, history or settings
Description
i am looking for a way to backup/export the bookmarks.html file via a BAT or VBS script, due to the random characters assigned to each profile. the best i can come up with is:
for /f "tokens=1,2* delims==" %%a in (
'type "%AppData%\Mozilla\Firefox\profiles.ini"^|findstr/ib "path=Profiles/" ^2^>nul'
) do (
if errorlevel 0 set profdir=%%~b
)
echo %profdir%
echo %profdir:~9,16%
pause
but i still cant get it to go to the right location, can someone make this easier for me?
(Edited by Moderator: placed code in a CODE block - c)
Troubleshooting information
Application Basics
Name Firefox
Version 3.6.3
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Personas 1.5.2 true personas@christopher.beard
FoxTab 1.3 true
Adblock Plus 1.1.3 true
Java Console 6.0.20 true
Java Quick Starter 1.0 true jqs@sun.com
Modified Preferences
Name
Value
accessibility.typeaheadfind.flashBar 0
browser.history_expire_days 20
browser.places.smartBookmarksVersion 2
browser.startup.homepage http://research.home.ge.com/
browser.startup.homepage_override.mstone rv:1.9.2.3
extensions.lastAppVersion 3.6.3
network.cookie.prefsMigrated true
network.http.proxy.version 1.0
places.last_vacuum 1274892525
print.print_printer \\nsk1prn01\2b16_mfd_p
print.printer_\\nsk1prn01\2b16_mfd_p.print_bgcolor false
print.printer_\\nsk1prn01\2b16_mfd_p.print_bgimages false
print.printer_\\nsk1prn01\2b16_mfd_p.print_command
print.printer_\\nsk1prn01\2b16_mfd_p.print_downloadfonts false
print.printer_\\nsk1prn01\2b16_mfd_p.print_edge_bottom 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_edge_left 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_edge_right 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_edge_top 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_evenpages true
print.printer_\\nsk1prn01\2b16_mfd_p.print_footercenter
print.printer_\\nsk1prn01\2b16_mfd_p.print_footerleft &PT
print.printer_\\nsk1prn01\2b16_mfd_p.print_footerright &D
print.printer_\\nsk1prn01\2b16_mfd_p.print_headercenter
print.printer_\\nsk1prn01\2b16_mfd_p.print_headerleft &T
print.printer_\\nsk1prn01\2b16_mfd_p.print_headerright &U
print.printer_\\nsk1prn01\2b16_mfd_p.print_in_color true
print.printer_\\nsk1prn01\2b16_mfd_p.print_margin_bottom 0.5
print.printer_\\nsk1prn01\2b16_mfd_p.print_margin_left 0.5
print.printer_\\nsk1prn01\2b16_mfd_p.print_margin_right 0.5
print.printer_\\nsk1prn01\2b16_mfd_p.print_margin_top 0.5
print.printer_\\nsk1prn01\2b16_mfd_p.print_oddpages true
print.printer_\\nsk1prn01\2b16_mfd_p.print_orientation 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_pagedelay 500
print.printer_\\nsk1prn01\2b16_mfd_p.print_paper_data 1
print.printer_\\nsk1prn01\2b16_mfd_p.print_paper_height 11.00
print.printer_\\nsk1prn01\2b16_mfd_p.print_paper_size_type 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_paper_size_unit 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_paper_width 8.50
print.printer_\\nsk1prn01\2b16_mfd_p.print_reversed false
print.printer_\\nsk1prn01\2b16_mfd_p.print_scaling 1.00
print.printer_\\nsk1prn01\2b16_mfd_p.print_shrink_to_fit true
print.printer_\\nsk1prn01\2b16_mfd_p.print_to_file false
print.printer_\\nsk1prn01\2b16_mfd_p.print_unwriteable_margin_bottom 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_unwriteable_margin_left 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_unwriteable_margin_right 0
print.printer_\\nsk1prn01\2b16_mfd_p.print_unwriteable_margin_top 0
privacy.sanitize.migrateFx3Prefs true
security.enable_ssl2 true
security.enable_tls false
security.warn_viewing_mixed false
Firefox version
3.6.3
Operating system
Windows XP
User Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Plugins installed
- -Adobe PDF Plug-In For Firefox and Netscape 8.2.2
- Default Plug-in
- NPRuntime Script Plug-in Library for Java(TM) Deploy
- Shockwave Flash 10.0 r45
- Adobe Shockwave for Director Netscape plug-in, version 11.5
- GEPlugin
- 4.0.50401.0
- Google Update
- Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
- DRM Netscape Network Object
- Npdsplay dll
- DRM Store Netscape Plugin
Alle svar (4)
The bookmarks.html file isn't even active in Firefox 3+ versions. If you want to be able to backup your Firefox bookmarks in the older HTML format, look at the Bookmark Backup extension which does backups in HTML format and allows you to set the location for the backup folders.
i really dont care in what formats the bookmarks json or whatever, as long as they are backed up. i need a script that can be run to do this without any user interaction. any ideas?
bat or vbs is preferred, but im open to new ideas.
this all should be done WITHOUT an add on.
I'm also looking for command line export of bookmarks in FF3(sqlite?) - in Windows.
You can make Firefox 3 create an automatic HTML backup (bookmarks.html) when you exit Firefox if you set the pref browser.bookmarks.autoExportHTML to true on the about:config page. That backup is created by default in the profile folder as bookmarks.html, but you can set the file name and path via the pref browser.bookmarks.file on the about:config page.