On Aug 14th 11 PM ET/Aug 15th 03:00 UTC, due to scheduled Firefox Account server maintenance, users may not be able to sign in or create a new subscription. This is expected to last approximately 30 minutes. Status updates can be found at https://status.vpn.mozilla.org or https://status.relay.firefox.com.

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

Back up passwords and logins

  • 9 replies
  • 1 has this problem
  • 29 views
  • Last reply by cor-el

more options

I wish to backup my password file and tried to follow: https://support.mozilla.org/gl/questions/1189644

I could not work it out and suspect the instructions refer to a version of Firefox I'm not using. My version is 68.12.0esr.

Thanks

I wish to backup my password file and tried to follow: https://support.mozilla.org/gl/questions/1189644 I could not work it out and suspect the instructions refer to a version of Firefox I'm not using. My version is 68.12.0esr. Thanks

All Replies (9)

more options

You want to read actual firefox FAQ first.

Export login data from Firefox https://support.mozilla.org/en-US/kb/export-login-data-firefox

Back up and restore information in Firefox profiles https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles

Helpful?

more options

You need logins.json and key4.db in Firefox 58 and newer to backup the logins although Firefox 68 can still use key3.db and convert that to key4.db but you need to remove an existing key4.db to make Firefox use key3.db.

Helpful?

more options

I have no idea what this is about. What is logins.json and key4.db and where do I find them? Cant I just cut the logins and passwords then paste them into a text file to carry across to my updated OS.

Helpful?

more options

The FAQ does not relate to my version. eg it describes a layout that I do not recognize.

Helpful?

more options

What version of Firefox are you planning to use on the destination system?

cor-el was referring to copy/pasting two specific files from your current Firefox profile folder to the one on your new installation. See: Recovering important data from an old profile.

If you prefer just a list, did Firefox 68 have the about:logins page? I don't think the old Saved Logins dialog that popped up out of the Preferences page had an Export feature. That's why there are programs like https://github.com/kspearrin/ff-password-exporter to extract your saved logins. However, that's a one-way trip, it doesn't import.

Helpful?

more options

The new browser will be what ever is the latest Slackware default. about:login never loaded and eventually I gave up. Are you telling me I can only backup my passwords manually?

Helpful?

more options

Firefox 68 still uses the old pop-up style window for the Password Manager, so you would have to use code in the Browser Console to export the logins to a plain text file.


/* export logins in JSON format */
var lg = prompt("Logins",JSON.stringify(Services.logins.getAllLogins()));
/* import logins in JSON format */
if (lg = prompt("Logins JSON: [{},{}]","?")){
lg = JSON.parse(lg);
try {/*[60+]*/
 for(i=0;LG=lg[i];i++){if(!LG.origin){LG.origin = LG.hostname}}
 ChromeUtils.import("resource://gre/modules/LoginHelper.jsm");
 LoginHelper.maybeImportLogins(lg);
} catch(e){console.log(e);}
}

Helpful?

more options

The Browser Console was Double Dutch to me. Where was I supposed to paste that script?

Helpful?

more options

This article explains where you can find the Browser Console and how to use it. You need to enable the command line in the console as explained in the article to be able to paste the above posted JavaScript code.

Did you find the profile folder as it is normally sufficient to transfer logins.json and key4.db from one profile to another profile with Firefox closed ?

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

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.