Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recovering lost bookmarks #155

Open
nara-droid opened this issue Aug 31, 2020 · 2 comments
Open

Recovering lost bookmarks #155

nara-droid opened this issue Aug 31, 2020 · 2 comments

Comments

@nara-droid
Copy link

nara-droid commented Aug 31, 2020

Hi,
One of my disks crashed and I lost some data like all my bookmarks (+5000). No way to recover files from the FF backup directory but I hit the side panel button and BSP2+ showed up with all my bookmarks just as I organised them before the crash disk.
Is there any mean to recover my bookmarks from what BSP2+ shows in the side panel ?
How could I do that ?
I also would be a great feature to have in BSP2+ (backup and restore).
Thanx

@aaFn
Copy link
Owner

aaFn commented Aug 31, 2020

Wow, you're lucky 😀 .. that means not all of the FF profile is lost.
BSP2 has a cache, so to make sure nothing is lost, do not hit the button in options page to synchronize with the FF API.

Indeed, I didn't think of a backup / export as BSP2 is not a bookmark manager, but I see this could be useful.
Request #154 contains a demand for adding such kind of functions, I will look at it later.

Meanwhile, there is a workaround to get what you want I believe:

  • Open an application which is able to receive HTML form of drag and drop
    • Example: Word (or LibreOffice I presume, I didn't verify)
    • Example: Thunderbird, and write a new mail in HTML -> Press Shift while clicking on "Write" to make sure you open an edit window in HTML mode
  • Drag each folder / bookmark item one level under the "Bookmarks Menu" object into the HTML application
    • BSP2 forbids to drag "Bookmarks Menu", so you'll have to do that for each item directly under it, sorry for that
  • Then you will see in the HTML application all as an HTML structure
    • With indentation
    • Folders are simple text
    • Bookmarks are HTML links with title and url
    • Separators are horizontal rules
  • From there, you can save the HTML doc (or send it as mail if Thunderbird)

Not ideal, but at least you will have your list

Then, if the FF DB is empty, next time you do an action like create, modify, move or delete a bookmark, BSP2 will detect that there is a desynchro and will resynchronize automatically (or you can force it on the Options page)

  • And then things will be empty, so quickly save somewhere using the workaround above ...
  • Or ... if things remain, that means that the FF DB of bookmarks got corrupted, but they are still there
    • In that case, you could be even luckier: create a new folder directly unxer "Bookmarks Menu"
    • Drag all other objects that BSP2 sees one level under "Bookmarks Menu" in there
    • If you are really lucky, they will now show again in the FF native bookmark sidebar, because BSP2 will have reconstructed a link to these bookmarks

Let me know how that goes.

On my side, I will look at an export function of the internal BSP2 cache, if possible in a format digestible by FF.
And if I can make "Bookmarks Menu" draggable to an external application, I will also do that.

@nara-droid
Copy link
Author

Thanx for your help and your fast answer.
The first part went well and I could have my list back just as you describeb.
Then I tried the second part but I was pretty sure it shouldn't work because I knew there was nothing but the default structure in the FF DB. So the trick didn't end as excepted.
I'm still lucky to have my list back and organised like I've left it befor crash. So thanx again, and yes, a backup/restore feature from an "healthy" BSP2 cache would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants