How to restore container settings from backup

User Help for Mozilla Firefox
Locked
NFH
Posts: 5
Joined: May 7th, 2019, 2:53 am

How to restore container settings from backup

Post by NFH »

After the extension disablement fiasco, my containers were deleted and I now have only the standard containers.

All my files inside C:\Users\%username%\AppData\Roaming\Mozilla\Firefox are backed up automatically to a cloud service with version history whenever they are modified. If I restore the whole folder, I will get the latest backup as opposed to the working versions of the files that I need, but I can restore individual files to a version at a historic date and time.

Which individual files do I need to restore from my backup to restore my container settings to how they were before the extension disablement fiasco?
NFH
Posts: 5
Joined: May 7th, 2019, 2:53 am

Re: How to restore container settings from backup

Post by NFH »

I have just lost all my containers again after my PC crashed and I rebooted. Firefox reloaded and lost all of the site lists for each container. It is not very robust functionality, and results in data loss very easily.

Does nobody know where Firefox stores container data?
kerft
Posts: 585
Joined: January 30th, 2019, 9:38 am

Re: How to restore container settings from backup

Post by kerft »

I don't know about the containers. There is currently a bug in Firefox where if the computer crashes data is much more likely to be lost than before. Reference - https://www.reddit.com/r/firefox/commen ... me=firefox
Until it is fixed, if you make daily backups and restore a whole daily backup after a problem, that should get you everything back, except that days work of course. This backup info (scroll down) was written for Seamonkey but should work for Firefox http://forums.mozillazine.org/viewtopic ... p=14832589
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: How to restore container settings from backup

Post by morat »

The container data for cookies is in the cookies.sqlite database.

More info: http://forums.mozillazine.org/viewtopic ... &t=3050177

You can post a question on the support site.

Firefox Multi-Account Containers
http://addons.mozilla.org/firefox/addon ... ontainers/
http://github.com/mozilla/multi-account-containers/
http://github.com/mozilla/multi-account ... ers/issues
NFH
Posts: 5
Joined: May 7th, 2019, 2:53 am

Re: How to restore container settings from backup

Post by NFH »

morat wrote:The container data for cookies is in the cookies.sqlite database.

More info: http://forums.mozillazine.org/viewtopic ... &t=3050177
Thanks, but this time it retained all the cookies for each container, but the sites for each container were lost. Where are the sites for each container stored?
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: How to restore container settings from backup

Post by morat »

Last edited by morat on June 19th, 2019, 4:53 am, edited 1 time in total.
User avatar
dickvl
Posts: 54139
Joined: July 18th, 2005, 3:25 am

Re: How to restore container settings from backup

Post by dickvl »

If this is about extensions that manage containers then they store their data in IndexedDB (storage\default) (previously in browser-extension-data).
See about:debugging for the UUID of each extension.
Currently open tabs have a userContextId that is mapped to a container via containers.json.
This data is stored in sessionstore files like sessionstore.jsonlz4 when you use "Restore Previous Session".
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: How to restore container settings from backup

Post by morat »

Here is a file utility to view the compressed sessionstore.jsonlz4 file.

Session History Scrounger by jscher2000
http://www.jeffersonscher.com/ffu/scrounger.html
http://github.com/jscher2000/Firefox-File-Utilities

JSON Pretty Print
http://jsonformatter.org/json-pretty-print
Locked