Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to restore tabs using recovery.bak?

  • 4 replies
  • 6 have this problem
  • 2 views
  • Last reply by Kaos_Dragon

more options

After a power outage while I was asleep, I loaded firefox back up and got the "well this is embarrassing" screen. I scanned the tabs to make sure it was right, and it was my tabs from about a month ago. I went right to the sessionstore-backups folder and copied everything in it to another folder. After peeking in them with notepad, only recovery.bak actually had my previous session.

I've tried renaming it to recovery.js and sessionstore.js while deleting all the others in the backup folder and the main profile folder, but I haven't had any luck yet. Is there anything else I can try?

After a power outage while I was asleep, I loaded firefox back up and got the "well this is embarrassing" screen. I scanned the tabs to make sure it was right, and it was my tabs from about a month ago. I went right to the sessionstore-backups folder and copied everything in it to another folder. After peeking in them with notepad, only recovery.bak actually had my previous session. I've tried renaming it to recovery.js and sessionstore.js while deleting all the others in the backup folder and the main profile folder, but I haven't had any luck yet. Is there anything else I can try?

Chosen solution

jscher2000 said

Probably this is obvious, but did you give Firefox time to fully exit and shut down before removing the latest sessionstore.js, copying in recovery.bak, and renaming recovery.bak to sessionstore.js? Same question with recovery.js if it still exists after a normal shutdown. Plan B would be: Extract the URLs from the old file and click each link to load it manually This is a better approach when you need to examine a number of files and you don't want to lose your current session. One-time Setup: (0) Install the "Session Extractor" bookmarklet (see the instructions in the top bar of the page for how to install it): https://www.jeffersonscher.com/res/sumomarklets.html#SessExtr To Extract the URLs: In the folder where you copied your session history files for safekeeping: (1) Create a copy of the session history file you want to mine for URLs and rename it with a .json extension. For example, right-click the recovery.bak file, choose Copy, then right-click a blank area of the list and choose Paste. Note: By default, Windows hides the .js extension. This is all easier if you can see it. http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions Right-click > Rename the recovery - Copy.bak file to recovery.json (or recovery.txt if you prefer). (2) Open the recovery.json file in a Firefox tab. Either drag the renamed file and drop it on an existing page to load the json/txt file in its place, or right-click the file and choose Open With and use Firefox. (3) In the tab displaying the session history file, click the bookmarklet button to run the script. This should generate a new page listing the URLs of each open tab from the file. You can select and copy this list and paste it somewhere for safekeeping, and/or you can just use the links now. Unfortunately, if you want to save that page "as is" (as an HTML page), there's an extra step: press Ctrl+U to launch the "view source" page, and save that as a .htm or .html file. For some reason, saving the original page gives you the original session file instead of the formatted list of links.

I didn't have any luck renaming it to get it to work normally, so I did plan B. At first it didn't work. Gave some weird syntax error. So I popped it into a JSON editor and tweaked it a bit until it complied then it worked just fine. It's probably why it wasn't working when I renamed it. So thanks for the help!

Read this answer in context 👍 0

All Replies (4)

more options

Probably this is obvious, but did you give Firefox time to fully exit and shut down before removing the latest sessionstore.js, copying in recovery.bak, and renaming recovery.bak to sessionstore.js? Same question with recovery.js if it still exists after a normal shutdown.

Plan B would be:

Extract the URLs from the old file and click each link to load it manually

This is a better approach when you need to examine a number of files and you don't want to lose your current session.

One-time Setup:

(0) Install the "Session Extractor" bookmarklet (see the instructions in the top bar of the page for how to install it):

https://www.jeffersonscher.com/res/sumomarklets.html#SessExtr

To Extract the URLs:

In the folder where you copied your session history files for safekeeping:

(1) Create a copy of the session history file you want to mine for URLs and rename it with a .json extension.

For example, right-click the recovery.bak file, choose Copy, then right-click a blank area of the list and choose Paste.

Note: By default, Windows hides the .js extension. This is all easier if you can see it. http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

Right-click > Rename the recovery - Copy.bak file to recovery.json (or recovery.txt if you prefer).

(2) Open the recovery.json file in a Firefox tab. Either drag the renamed file and drop it on an existing page to load the json/txt file in its place, or right-click the file and choose Open With and use Firefox.

(3) In the tab displaying the session history file, click the bookmarklet button to run the script. This should generate a new page listing the URLs of each open tab from the file. You can select and copy this list and paste it somewhere for safekeeping, and/or you can just use the links now.

Unfortunately, if you want to save that page "as is" (as an HTML page), there's an extra step: press Ctrl+U to launch the "view source" page, and save that as a .htm or .html file. For some reason, saving the original page gives you the original session file instead of the formatted list of links.

more options

You probably saw this tip before, but just in case, because Windows hides certain file extensions by default, you'll have the best luck renaming files if you show all extensions: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

more options

Note that you need to copy the recovery.bak file to the main Firefox profile folder and rename the file to sessionstore.js. It is best to first select "Show my windows and tabs from last time" as the startup setting to make Firefox automatically restore all tabs.

more options

Chosen Solution

jscher2000 said

Probably this is obvious, but did you give Firefox time to fully exit and shut down before removing the latest sessionstore.js, copying in recovery.bak, and renaming recovery.bak to sessionstore.js? Same question with recovery.js if it still exists after a normal shutdown. Plan B would be: Extract the URLs from the old file and click each link to load it manually This is a better approach when you need to examine a number of files and you don't want to lose your current session. One-time Setup: (0) Install the "Session Extractor" bookmarklet (see the instructions in the top bar of the page for how to install it): https://www.jeffersonscher.com/res/sumomarklets.html#SessExtr To Extract the URLs: In the folder where you copied your session history files for safekeeping: (1) Create a copy of the session history file you want to mine for URLs and rename it with a .json extension. For example, right-click the recovery.bak file, choose Copy, then right-click a blank area of the list and choose Paste. Note: By default, Windows hides the .js extension. This is all easier if you can see it. http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions Right-click > Rename the recovery - Copy.bak file to recovery.json (or recovery.txt if you prefer). (2) Open the recovery.json file in a Firefox tab. Either drag the renamed file and drop it on an existing page to load the json/txt file in its place, or right-click the file and choose Open With and use Firefox. (3) In the tab displaying the session history file, click the bookmarklet button to run the script. This should generate a new page listing the URLs of each open tab from the file. You can select and copy this list and paste it somewhere for safekeeping, and/or you can just use the links now. Unfortunately, if you want to save that page "as is" (as an HTML page), there's an extra step: press Ctrl+U to launch the "view source" page, and save that as a .htm or .html file. For some reason, saving the original page gives you the original session file instead of the formatted list of links.

I didn't have any luck renaming it to get it to work normally, so I did plan B. At first it didn't work. Gave some weird syntax error. So I popped it into a JSON editor and tweaked it a bit until it complied then it worked just fine. It's probably why it wasn't working when I renamed it. So thanks for the help!