Mozilla FAQ - Profile & Backup

  1. General What is my profile?
  2. General Can I share a profile with Netscape 7 or with an earlier version of Mozilla?
  3. General How do I set up multiple profiles?
  4. General Where is my profile stored?
  5. General What is the @$%#@$%#.slt directory in my profile directory?
  6. General How do I force Mozilla to open with a specific profile?
  7. General Whenever I try to open a second Mozilla window, I get a warning that the profile is in use. How do I open multiple instances of Mozilla? (Linux)
  8. Data Migration How do I move my Netscape 4.x profile to Mozilla?
  9. Backup & Restore How do I back up my profile data?
  10. Backup & Restore How do I restore my profile data from backup?
  11. Backup & Restore How do I transport my profile to a different machine?
  12. Backup & Restore I copied my profile over to a new location, and some data (mail) do not appear!
  13. Backup & Restore @Help, my bookmarks are all gone!
  14. Backup & Restore @My system crashed when I exited Mozilla. Now all my mail are gone. What do I do?
  15. Backup & Restore @My profile is missing (from the Profile Manager), how do I get it back again?
  16. Sharing Does Mozilla support roaming profiles?
  17. Sharing How do I share mail between Windows and Linux on a dual boot PC?
  18. Security How do I protect data of my profile (from local machine access)?
What is my profile?

Your profile is your identity in Mozilla. Your profile contains your bookmarks, mail and mail account settings, saved passwords, address book, security certificates and preferences.

You may have multiple Mozilla profiles on one computer, for example, to separate your home and work Web surfing activities, or for each of your family members sharing your computer.

Can I share a profile with Netscape 7 or with an earlier version of Mozilla?

Do not share a profile with Netscape 6 or 7. Sharing profiles between different versions of Mozilla can lead to profile corruption

Note even if you uninstall a previous copy of Mozilla or Netscape, the old profile will still be there until you remove its folder. Be sure to create a fresh profile when you install a new version of Mozilla.

How do I set up multiple profiles?

You may set up new profiles from the Profile Manager:

Where is my profile stored?

The location of a profile has three elements: the BASE, its NAME, and its SALT (xxxxxxxx.slt). For example,

C:\Windows\Application Data\Mozilla\Profiles\ John Smith\ lm34qgkq.slt
base profile directory name salt

The BASE profile directory houses the profile registry (Registry.dat) file. The BASE directory depends on the system settings, as will be described later.

When you create a new profile, you can choose a different BASE directory and NAME sub-directory to put your profile files.

The SALT is a sub-directory named with eight random alpha-numerals followed by .slt extension (see more info). When you create a new profile, Mozilla automatically generates a SALT directory if it doesn't already exist. But if SALT does exist, the Profile Manager will use it.

The following lists typical base profile directories:

Windows

Macintosh

Linux

What is the @$%#@$%#.slt directory in my profile directory?

This is called salting. Profile data is stored in a randomly named directory to make it difficult for malicious programs to find profile data (see bug 56002 and 97180)

You can opt out of profile salting when you first create a profile by doing the following:

  1. Create your the destination directory of your profile, if it does not already exists.
  2. Create an empty text file named prefs.js in the directory.
  3. Create a new profile. In the second page of the profile wizard (where you choose a profile name), click the Choose Folder button. In the file picker dialog, choose your profile folder.
  4. Choose Finish.

How do I force Mozilla to open with a specific profile?

On Windows, Linux, and Unix systems, you can open open Mozilla with a specific profile using the following command line:

mozilla.exe -p <profile_name>

where <profile_name> is the name of the profile as appeared in the Profile Manager.

To open Mozilla in Quick Launch mode with a specific profile, the command line is:

mozilla.exe -turbo -p <profile_name>

Whenever I try to open a second Mozilla window, I get a warning that the profile is in use. How do I open multiple instances of Mozilla? (Linux)

Use the following script to start Mozilla:

  1. Save the following code to a text file named mozilla.bash, preferably to a location where your system looks for executable programs (e.g. /usr/local/bin or ${HOME}/bin).

    Please change the MOZILLA_EXE variable to fit your environment.

  2. Mark the file as executable: do a cd to the directory where the file is located and do
    chmod 755 mozilla.bash

  3. To run Mozilla with a URL, do
    ./mozilla.bash http://www.mozilla.org

    Otherwise just execute the script
    ./mozilla.bash


How do I move my Netscape 4.x profile to Mozilla?

The Profile Manager should detect and import a profile from Netscape 4.5 or later automatically while installing, except for the address book and any security certificates.

You can import your bookmarks by hand with Bookmarks | Manage Bookmarks | Tools | Import.

To move your address book, export it from Netscape 4.x as text (.ldif) and import it into Mozilla as LDIF.

Your mail files (the files with no extensions) can be copied directly from your Netscape 4 profile to the Mail folder in your Mozilla profile.

How do I back up my profile data?

Occasionally, your browser software or your computer system may malfunction and cause important profile data to be lost. Therefore we recommand that you make a backup copy of your profile periodically.

All your user data are stored in your profile directories. If you are not sure what to back up, or if you want to back up everything, back up the entire directory content. Restoring or transport profile data will be easier if you keep the SALT and NAME directory hierarchy.

The following subsection describes how you can selectively back up your data:

Mail

Mail messages are stored in the Mail (or ImapMail) sub-directory (e.g. /Mail/pop.mail.yahoo.com/). To back up your mail messages, save the files without extension, for example INBOX. To back up filters too, save the rules.dat file. The *.msf files are index files that will be automatically regenerated if removed. Save the entire Mail directory if you are uncertain what to save.

News

News settings and messages are stored in the News sub-directory (e.g. /News/news.mozilla.org/). Your subscribed groups are stored in the *.rc file (e.g. news.mozilla.org.rc). The complete news server groupslist is stored in hostinfo.dat (e.g. /News/news.mozilla.org/hostinfo.dat). *.msf files store message summaries. To back up news, save the *.rc, *.dat, and *.msf files.

Address book

In your profile directory, save abook.mab (personal address book) and history.mab (collected addresses). If you have more than one address book, save all *.mab files.

Bookmarks

Save the bookmarks.html file.

Saved password data

Username and password data is stored in 12345678.s (the number part is random). Save the file.

Saved form data

Saved form data is stored in 12345678.w (the number part is random). Save the file.

Junk filters

Save the training.dat file which stores information for the new smart filtering system.

Cookies

Save the cookies.txt file.

User preferences

The main Mozilla configuration file is prefs.js. Save this file.

Customization files

Save user.js, chrome/userContent.css, and chrome/userChrome.css if you use them to customize Mozilla.

How do I restore my profile data from backup?

Normally, all you need to do is to restore with the backup copies of your profile files.

Exit the browser, and replace the relevant files in your profile directory with the backup copies. If after restart the profile data still appear to be lost, you may have a corrupted chrome cache file, in which case, exit your browser, delete the xul.mfl, xul.mfasl, or XUL FastLoad File file in your profile directory, and restart Mozilla again.

How do I transport my profile to a different machine?

Most of Mozilla profile files are in the same formats on all platforms, so it is possible to transport a profile across two different operating systems. To move a profile to a different machine:

  1. First, make a copy of your profile data.

  2. Copy your profile files to the target machine. The profile location must be complete (BASE, NAME, and SALT). If possible, keep the profile locations the same between the old machine and target machine. If they are different, you will need to manually edit the profile configuration file afterward.

  3. In the target machine, open the Profile Manager.

  4. Choose Create Profile, and then choose Next.

  5. Enter a profile name.

  6. Choose the Choose Folder button and navigate to the target profile location (BASE+NAME, excluding SALT).

  7. Choose Finish.

Hint to system administrators: if you want to copy the same profile as the default to many systems with CLEAN Mozilla installations, you can skip all these steps simply by copying all contents of the profile directory, including Registry.dat.

The opening screen of the Profile Manager reappears, with the new profile listed and highlighted. If the profile locations (BASE+NAME+SALT) are exactly the same between the old and target machines, you can start up your browser with the new profile by choosing Start Mozilla. If not, you will need to edit the profile configuration file.

I copied my profile over to a new location, and some data (mail) do not appear!

Some profile files are referenced as absolute path (relative to the system root instead of the profile location). If the old and the new locations of your profile directories are different, some data may be missing.

On Mozilla 1.5 or an earlier version, the mail, news, and signature files are referenced as absolute path. If your profile is from these versions, follow these instructions to correct the file references.

  1. Exit Mozilla.

  2. In your profile directory, locate the prefs.js file and open it with a text editor (e.g. Notepad or SimpleText). The configuration file is a list of entries like:

    user_pref("<setting>", <value>);
  3. Locate the entries for browser.cache.disk.parent_directory, mail.directory, mail.root.imap, mail.root.nntp, mail.root.none, mail.root.pop3, mail.newsrc_root, and news.directory (you may not have all of them). Delete these lines.

  4. Save the file and open Mozilla with the profile.

  5. Open Mail & Newsgroups (you will find that none of your backup messages are imported yet.) In Mail & Newsgroups , open the Edit menu and choose Mail & Newsgroups Account Settings...

  6. In the Accounts pane on the left, navigate to the Local Folders account. On the right pane, change Local Directory to reflect the new profile directory.

  7. In the Accounts pane, navigate to each mail account. Navigate to Server Settings and change Local Directory to reflect the new profile directory.

  8. If you have newsgroup subscription(s), navigate to Server Settings for each news account. Change newsrc file and Local Directory to reflect the new profile directory.

  9. Choose OK.

  10. Exit Mozilla and then restart it. All messages should now be imported.

To update your signature files, use the Mail & Newsgroups Account Settings... preference dialog.

Help, my bookmarks are all gone!

See Troublshooting.

My system crashed when I exited Mozilla. Now all my mail are gone. What do I do?

See Troublshooting.

Does Mozilla support roaming profiles?

Mozilla does not yet support roaming profiles. A roaming profiles function is under development.

How do I share mail between Windows and Linux on a dual boot PC?

For sharing mail between computers, IMAP is recommanded. On IMAP, mail is stored on the server; the mail client downloads only the message headers initially and retrieve the message bodies later (as opposed to on POP, where all messages have to be downloaded at once). IMAP mail folders can also be configured to be shared by others. Unfortunately, not all ISPs support IMAP.

If you store your mail on a dual-boot PC with Linux and Windows installed, you can share mail between the OSes (with restrictions, however):

  1. Since Windows cannot read Linux's file system, your profile must be stored on a Windows file system. You can either use FAT32 or NTFS. If you use NTFS

    In Windows, create your Mozilla profile. You must set the profile location to a custom location on a FAT32 partition.

    Note FAT32 is world-readable, so hard-disk sharing may not be a secure solution.

    For help on creating a FAT32 partition, see Microsoft's documentation for Windows XP or Windows 2000.

You can easily share the most important profile files. In Linux, just create links (man ls) that point to the files on your fat32 partition. You can share bookmarks.html, the mail accounts, the news accounts (where the naming convention for the rc file is different on Linux and Windows[1]), cookies, the password file.

How do I protect data of my profile (from local machine access)?

Currently Mozilla does not encrypt profile data, so you should use your system's own user management facilities to restrict access to your computer account.