为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Manually copy container tabs to a new Firefox profile

  • 11 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 js873983

more options

I have about 30 container tabs (Multi-Account Containers https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/) defined in a Firefox profile. I need to copy those to a new profile. Which files on the filesystem would contain what I need to copy to the new profile?

I have about 30 container tabs (Multi-Account Containers https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/) defined in a Firefox profile. I need to copy those to a new profile. Which files on the filesystem would contain what I need to copy to the new profile?

被采纳的解决方案

The files needed are:

  • cookies.sqlite
  • containers.json

Copy those files to the new profile and all the containers will be present in the new profile.

EDIT: As cor-el pointed out, don't copy the file cookies.sqlite-wal (if present).

定位到答案原位置 👍 0

所有回复 (11)

more options

This data is stored in IndexdDB in the profile folder (/storage/default) under a special GUID. The GUID of all extensions are listed on the about:debugging page that you can open via the location bar. I don't know whether it is safe to transfer the content of a specific folder to another profile, so use this at your own risk. Each profile uses its own GUID for an extension, so you need the folder content and you need to check the name of the current SQLite database.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

cor-el said

This data is stored in IndexdDB in the profile folder (/storage/default) under a special GUID. The GUID of all extensions are listed on the about:debugging page that you can open via the location bar.

That's not correct. Containers are built into Firefox, not implemented entirely as an extension. Extensions can work with containers, but that's all.

more options

选择的解决方案

The files needed are:

  • cookies.sqlite
  • containers.json

Copy those files to the new profile and all the containers will be present in the new profile.

EDIT: As cor-el pointed out, don't copy the file cookies.sqlite-wal (if present).

由js873983于修改

more options

I assumed you used the Firefox Multi-Account Containers extension. There is the containers.json file in the main profile folder that stores some container related data. I'm not using containers, so I don't know whether it stores all container data (I only see the userContextId and some other data).

more options

(I had missed your above reply)

SQLite temp files (-shm and -wal) like cookies.sqlite-wal are best avoided to copy to another profile and they should only be there when Firefox is running.

more options

cor-el said

(I had missed your above reply) SQLite temp files (-shm and -wal) like cookies.sqlite-wal are best avoided to copy to another profile and they should only be there when Firefox is running.

Thank you

more options

cor-el said

I assumed you used the Firefox Multi-Account Containers extension. There is the containers.json file in the main profile folder that stores some container related data. I'm not using containers, so I don't know whether it stores all container data (I only see the userContextId and some other data).

Yes, I do use that extension. I think it is just for managing containers.

more options

If you use the extension then it is likely that it stores its data in indexedDB like I posted above. You would have to check the SQLite database with a suitable SQLite browser utility to see what data is stored if this is readable data.

more options

cor-el said

If you use the extension then it is likely that it stores its data in indexedDB like I posted above. You would have to check the SQLite database with a suitable SQLite browser utility to see what data is stored if this is readable data.

I already tested my solution and it works. Moving all container tabs(with all associated properties such as icon and color) requires only the files I mentioned.

more options

Does this include what website are running in what container ?

more options

cor-el said

Does this include what website are running in what container ?

No