How to recover bookmarks?
I tried to upgrade Firefox from version 7 to version 24 but it crashed. I uninstalled the old Firefox and installed the new. I forgot to backup the bookmarks but I was able to recover several backups using Recuva. The backups have data in them when I look at them in Notepad. I am able to restore a bookmark that was automatically saved yesterday but not the ones that I restored. I copied one of them to my profiles and tried restoring it and I get the message "unable to process backup file". I tried restoring from a filename on another drive and I didn't get the message but I didn't see any bookmarks either. I have found many instances of this problem and I tried deleting the places.sqlite file and restarting Firefox with no luck. When I look at the profile it has a check mark in the read only box that looks grayed out. I uncheck the box but it keeps coming back. I am able to restore new backups. When I restore from a filename it deletes all my bookmarks. This is on a Windows Vista Toshiba laptop. Any suggestions?
I found a JSON file fixer at http://jsonformatter.curiousconcept.com/. I pasted my JSON file into it and ran it and it told me that I had an unexpected comma. The extra comma was clear down at the end of the file before the last closing bracket. I edited it out using Notepad, restored it and all my bookmarks are back. I should go back and check my other backups and see if they had the exact same problem. Would like to know how the extra comma got there.Read this answer in context 0
Additional System Details
- Shockwave Flash 11.8 r800
- iTunes Detector Plug-in
- CANON iMAGE GATEWAY Album Plugin Utility Module
- Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
- The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
- PDF-XChange Viewer Netscape Gecko Plugin
- User Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Firefox/24.0
First, it's normal that when you restore a .json backup file it completely replaces your existing bookmarks. To preserve existing bookmarks, before restoring a backup, use the export to HTML feature. You can import from the HTML format without losing bookmarks.
- Export Firefox bookmarks to an HTML file to back up or transfer bookmarks
- Import Bookmarks from an HTML file
Now... what to do about the corrupted .json files you recovered. Because the format is hard to read, it may be difficult to repair adequately. This has come up in other threads, and I can't recall seeing a good tool to do it. Hopefully someone else will have a suggestion other than visiting all the links in the file and bookmarking them from scratch.
Note that Windows shows a green block for folders in the Read-only box, but not a real check-mark.
Only a check mark in the Read-only box means that a folder or file is Read-only.
Windows doesn't check all the files in a folder so instead displays a green block to indicate that it is not sure.
A JSON backup is a text file, so if the file contains other character apart from readable text then the file is corrupted and Windows probably has used some clusters to store other data.
Repairing such a damaged JSON file is almost impossible (a cluster is 4 KB and you would need to fix all missing closing '}' and ']' to make Firefox pickup the remainder of the file).
The only possibility is to extract http(s) links from such a file with an editor that knows about regular expressions or use the below posted bookmarklet in Firefox.
I found a JSON file fixer at http://jsonformatter.curiousconcept.com/. I pasted my JSON file into it and ran it and it told me that I had an unexpected comma. The extra comma was clear down at the end of the file before the last closing bracket. I edited it out using Notepad, restored it and all my bookmarks are back. I should go back and check my other backups and see if they had the exact same problem. Would like to know how the extra comma got there.