본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How to restore tabs using recovery.bak?

  • 4 답장
  • 6 이 문제를 만남
  • 151 보기
  • 최종 답변자: 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?

선택된 해결법

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!

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (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

선택된 해결법

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!