Recover NS prefs/data from previous FF profile? (post Firefox Refresh)

Ask for help about NoScript, no registration needed to post
MaybeScript

Recover NS prefs/data from previous FF profile? (post Firefox Refresh)

Post by MaybeScript » Sun Jan 13, 2019 10:47 pm

FF updated yesterday for me. This 64.0.2 update created a conflict/instability that I resolved with a Firefox Refresh. https://support.mozilla.org/en-US/kb/re ... d-settings

NS settings (buttons, etc) are intact, but data (whitelist/blacklists) are not present post-FF-refresh. I did not back up through the add-on (which is a simple .txt file), but it seems the FF Add-on data WAS backed up:

From the Firefox Restore page https://support.mozilla.org/en-US/kb/ba ... b=a&as=aaq :
Note: The Refresh Firefox feature creates an Old Firefox Data folder on your desktop, which contains a backup of your old profile folder and its contents. If you recently refreshed Firefox and still have this folder, you already have a complete profile backup.

The "old firefox data" folder on my desktop, created by the FF Refresh, includes a Prefs.js file.

The NoScript site https://noscript.net/faq#qa2_4 indicates that this same prefs.js file includes the NS data that I wish to restore.
Q: Where's my NoScript configuration stored? How can I backup or migrate it? How can I reset it?
A: Your NoScript configuration, including permissions (whitelist/blacklist) and other settings, is stored together with all your Firefox preferences, inside your browser profile folder (prefs.js file). Whenever you backup your browser profile, you are saving the whole NoScript configuration as well.

All the pieces appear to be here. I need help tying them together, and the Firefox site explicitly states that on the recovery-from-old-profile (https://support.mozilla.org/en-US/kb/re ... ld-profile) page that they do not help with instruction on how to accomplish what I mean to do:
Note: Because your preferences and extensions are often the causes of problems, this article *does not explain how to copy these between profiles.* Therefore, if you follow the steps in this article, you will have to reinstall your extensions and reconfigure your Firefox preferences afterward.

This is only a small table/set of URLs, and I am confident that this did/could not have been the cause of my wonky post-update-to-64.0.2 Firefox.

I cannot be the first person to try to find a way to restore my FF/NS preferences from yesterday. Does someone know how to extract/restore the NoScript data/preferences?

(even a Windows Restore/thumbdrive operation would be worth it for me, if that is possible as a last resort)

barbaz
Senior Member
Posts: 8914
Joined: Sat Aug 03, 2013 5:45 pm

Re: Recover NS prefs/data from previous FF profile? (post Firefox Refresh)

Post by barbaz » Mon Jan 14, 2019 12:46 am

Did you copy storage-sync.sqlite into your new profile?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:56.0; Waterfox) Gecko/20100101 Firefox/56.2.6

MaybeScript

Re: Recover NS prefs/data from previous FF profile? (post Firefox Refresh)

Post by MaybeScript » Mon Jan 14, 2019 1:31 am

barbaz wrote:
Mon Jan 14, 2019 12:46 am
Did you copy storage-sync.sqlite into your new profile?
No. How do I do that properly? I assume it's:
  • exit Firefox
    DELETE storage-synch.sqlite from new/current profile folder
    COPY storag-synch.sqlite from previous profile folder, to new/current folder
Is that correct?

barbaz
Senior Member
Posts: 8914
Joined: Sat Aug 03, 2013 5:45 pm

Re: Recover NS prefs/data from previous FF profile? (post Firefox Refresh)

Post by barbaz » Mon Jan 14, 2019 1:40 am

MaybeScript wrote:
Mon Jan 14, 2019 1:31 am
How do I do that properly? I assume it's:
  • exit Firefox
    DELETE storage-synch.sqlite from new/current profile folder
    COPY storag-synch.sqlite from previous profile folder, to new/current folder
Is that correct?
Yes
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:56.0; Waterfox) Gecko/20100101 Firefox/56.2.6

Post Reply