LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2020, 02:50 PM   #1
Tyro65
Member
 
Registered: Jul 2009
Location: Sault Ste. Marie, ON
Distribution: MX-21
Posts: 52

Rep: Reputation: 0
Restore Firefox Bookmarks


When I attempt to restore bookmarks from the bookmarkbackups folder in Firefox via Bookmarks -- Show All Bookmarks -- Import and Backup -- Restore, I get "Unable to Process the backup file." How do I correct this? Is there another way to extract the bookmarks from the .jsonlz4 files?

Thanks.
 
Old 05-28-2020, 03:50 PM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Code:
sudo apt install lz4json jq
Code:
lz4jsoncat bookmarks-*.jsonlz4|jq '
..|objects|select(has("typeCode"))|select(.typeCode==1)|
{title:.title, uri:.uri}'

Last edited by shruggy; 05-29-2020 at 05:45 AM.
 
Old 05-29-2020, 08:50 AM   #3
Tyro65
Member
 
Registered: Jul 2009
Location: Sault Ste. Marie, ON
Distribution: MX-21
Posts: 52

Original Poster
Rep: Reputation: 0
Cool! Thanks a lot.
 
Old 05-29-2020, 09:21 AM   #4
Tyro65
Member
 
Registered: Jul 2009
Location: Sault Ste. Marie, ON
Distribution: MX-21
Posts: 52

Original Poster
Rep: Reputation: 0
Logins and Passwords

Now I'm trying to recover logins and passwords. Do you have any more magic commands that will accomplish this?
 
Old 05-29-2020, 09:25 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Install and run nss-passwords.
 
Old 05-29-2020, 06:48 PM   #6
Tyro65
Member
 
Registered: Jul 2009
Location: Sault Ste. Marie, ON
Distribution: MX-21
Posts: 52

Original Poster
Rep: Reputation: 0
Thank you, Shruggy.
 
  


Reply

Tags
bookmarks, firefox, json, json jq



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Firefox - restore bookmarks? Jason_25 Linux - Software 6 05-27-2020 08:07 PM
[SOLVED] Firefox bookmarks and history not working in Mint 13 install-and-file-restore PaulFC5 Linux Mint 1 08-26-2012 06:10 PM
Firefox bookmarks.html not showing correct bookmarks even though file is identical. php Ubuntu 7 11-08-2008 04:12 PM
Mozilla/Firefox Bookmarks Syncronizing hogtied Linux - Software 13 05-21-2007 04:40 AM
importing a bookmarks file into a bookmarks subfolder newbiesforever Linux - Software 0 11-07-2006 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration