Moving your profile folder: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(Method 1: removed references to Netscape and Mozilla Suite and added "See also" links for those applications)
Line 3: Line 3:
* Moving your profile from one computer to another when this [[Profile_backup#Restoring_or_migrating_your_backed-up_profile|simpler procedure]] won't work
* Moving your profile from one computer to another when this [[Profile_backup#Restoring_or_migrating_your_backed-up_profile|simpler procedure]] won't work
* Manually restoring a [[Profile backup | backed-up]] profile to a location different from its original location
* Manually restoring a [[Profile backup | backed-up]] profile to a location different from its original location
* Manually importing your mail, address books, and settings from Netscape 7 or Mozilla Suite to Thunderbird (but see these [[Migrate from Mozilla Suite or Netscape to Thunderbird | other options]])


In each case, you will be moving or copying the contents of an existing [[profile folder]] to a different location, so do not proceed until you have found on your computer the profile folder whose contents you want to move.
In each case, you will be moving or copying the contents of an existing [[profile folder]] to a different location, so do not proceed until you have found on your computer the profile folder whose contents you want to move.
Line 10: Line 9:


==Method 1==
==Method 1==
:''This method applies to Thunderbird and Firefox only.''
:''Moving a Firefox or Thunderbird profile to a new location''
 
Firefox or Thunderbird should already be installed on the computer where you are moving the profile and a [[profile folder]] and "profiles.ini" file will already exist in the Thunderbird or Firefox default profile path.  


The official Help documentation at mozilla.org describes procedures [http://www.mozilla.org/support/thunderbird/profile for Thunderbird] and [http://www.mozilla.org/support/firefox/profile for Firefox] whereby you can move your profile to another location and then simply point Thunderbird or Firefox to it through a simple edit of the "profiles.ini" file. This is easier than Method 2, below, which requires somewhat more complex file editing. Some users have reported that the procedure sometimes does not work, however, and the failure may be caused by installed extensions and/or themes [http://forums.mozillazine.org/viewtopic.php?t=252317]. If you try this method and it doesn't work for you, see the Troubleshooting section below or try Method 2 or Method 3.
The official Help documentation at mozilla.org describes procedures [http://www.mozilla.org/support/thunderbird/profile for Thunderbird] and [http://www.mozilla.org/support/firefox/profile for Firefox] whereby you can move your profile to another location and then simply point Thunderbird or Firefox to it through a simple edit of the "profiles.ini" file. This is easier than Method 2, below, which requires somewhat more complex file editing. Some users have reported that the procedure sometimes does not work, however, and the failure may be caused by installed extensions and/or themes [http://forums.mozillazine.org/viewtopic.php?t=252317]. If you try this method and it doesn't work for you, see the Troubleshooting section below or try Method 2 or Method 3.


Initial testing seems to suggest that you can use this method to manually migrate a Mozilla  Suite or Netscape 7 profile to Thunderbird, including all mail and account settings, but it may not work perfectly. To do so:
# Create a new, empty folder in the desired profile location with the name you wish to use for the new profile, for example, <tt>D:\Mozilla\Firefox\Profiles\'''newprofile'''</tt>
# Copy the entire ''contents'' of the Mozilla Suite/Netscape profile folder (ending in ".slt"), '''including''' the files pluginreg.dat, profiles.ini, registry.dat, and all subfolders, to your desired location.  
# Copy the entire ''contents'' of the Firefox or Thunderbird [[profile folder]] you are moving into the new profile folder you just created.  
# If you do the copy via a CD, remove the write-protection from the copied files.
# If you do the copy via a CD, remove the write-protection from the copied files.
# Follow the procedure described [http://www.mozilla.org/support/thunderbird/profile here] to edit your Thunderbird profiles.ini file accordingly.
# Find the Firefox or Thunderbird "profiles.ini" file (it will be located in the Firefox or Thunderbird default [[profile folder]] path) and open it in a text editor.
# When you restart Thunderbird, go to "Tools -> Account Settings" and for each account (including Local Folders), click on "Server Settings" and verify that "Local directory" is pointed to the correct location. If it isn't, then click on the "Browse" button to fix it. You may need to exit and restart Thunderbird for these changes to take effect.
#*(Optional) Change the "Name=" line to the name of the new profile folder you created, e.g., <tt>Name=newprofile</tt>
# If the above steps fail to migrate the profile properly, see the Troubleshooting section below or try Method 2.
#*Change "IsRelative=1" to "IsRelative=0"
#*Change the "Path=" line to the actual location of the new profile folder, e.g., <tt>Path=D:\Mozilla\Firefox\Profiles\newprofile</tt>.
#If you are moving a profile from its default location,  the original profile folder can now be removed.
# Open Firefox or Thunderbird, to test if the profile move was successful. 
'''Important:''' Instead of editing the "profiles.ini" file by hand after performing steps 1, 2 and 3, you could alternately use the Firefox or Thunderbird [[Profile Manager]] to create a new profile [http://forums.mozillazine.org/viewtopic.php?t=473308], using the "Choose folder" option to select the new profile folder.  You can also use the Profile Manager again to delete the original profile (always use the "Don't Delete Files" option as a safety precaution when deleting profiles).
 
When you restart Thunderbird, go to "Tools -> Account Settings" and for each account (including Local Folders), click on "Server Settings" and verify that "Local directory" is pointed to the correct location. If it isn't, then click on the "Browse" button to fix it. You may need to exit and restart Thunderbird for these changes to take effect.


==Method 2==
==Method 2==
Line 33: Line 40:
==Troubleshooting==
==Troubleshooting==
If you have done all the steps in one of the above methods but the application's interface (such as toolbar buttons) looks strange or the application does not function properly, it could be due to interference from previously installed themes or extensions that you migrated along with the rest of your profile. Thunderbird and Firefox users can try starting up in [[Safe Mode]], which will launch the application with extensions and themes disabled; if the application starts up OK, then extensions/themes are most likely the problem. In this case, you can try exiting the application, deleting the contents of the "chrome" and "extensions" subfolders in your profile folder, and restarting. [http://forums.mozillazine.org/viewtopic.php?p=531797#531797] Be warned that doing so will cause you to lose all installed extensions and themes.
If you have done all the steps in one of the above methods but the application's interface (such as toolbar buttons) looks strange or the application does not function properly, it could be due to interference from previously installed themes or extensions that you migrated along with the rest of your profile. Thunderbird and Firefox users can try starting up in [[Safe Mode]], which will launch the application with extensions and themes disabled; if the application starts up OK, then extensions/themes are most likely the problem. In this case, you can try exiting the application, deleting the contents of the "chrome" and "extensions" subfolders in your profile folder, and restarting. [http://forums.mozillazine.org/viewtopic.php?p=531797#531797] Be warned that doing so will cause you to lose all installed extensions and themes.
==See also==
*[[Combining two profiles]]
*[[Migrate from Mozilla Suite or Netscape to Thunderbird]]
*[[Migrate from Thunderbird to Mozilla Suite]]


[[Category:Profiles]]
[[Category:Profiles]]

Revision as of 20:07, 13 October 2006

The following all involve the same basic steps and are thus explained together on this page:

  • Changing the location of your profile folder
  • Moving your profile from one computer to another when this simpler procedure won't work
  • Manually restoring a backed-up profile to a location different from its original location

In each case, you will be moving or copying the contents of an existing profile folder to a different location, so do not proceed until you have found on your computer the profile folder whose contents you want to move.

The messages and address books are stored using the same format on all platforms. If you move your profile between dissimilar operating systems (Windows to OSX for example) the pathnames in the prefs.js file (your settings) may have the wrong syntax. If this happens you can update them by using the browse button for the local directory in Tools -> Account Settings -> Server Settings and Tools -> Account Settings -> Local Folders to specify the correct account and mail directories.

Method 1

Moving a Firefox or Thunderbird profile to a new location

Firefox or Thunderbird should already be installed on the computer where you are moving the profile and a profile folder and "profiles.ini" file will already exist in the Thunderbird or Firefox default profile path.

The official Help documentation at mozilla.org describes procedures for Thunderbird and for Firefox whereby you can move your profile to another location and then simply point Thunderbird or Firefox to it through a simple edit of the "profiles.ini" file. This is easier than Method 2, below, which requires somewhat more complex file editing. Some users have reported that the procedure sometimes does not work, however, and the failure may be caused by installed extensions and/or themes [1]. If you try this method and it doesn't work for you, see the Troubleshooting section below or try Method 2 or Method 3.

  1. Create a new, empty folder in the desired profile location with the name you wish to use for the new profile, for example, D:\Mozilla\Firefox\Profiles\newprofile
  2. Copy the entire contents of the Firefox or Thunderbird profile folder you are moving into the new profile folder you just created.
  3. If you do the copy via a CD, remove the write-protection from the copied files.
  4. Find the Firefox or Thunderbird "profiles.ini" file (it will be located in the Firefox or Thunderbird default profile folder path) and open it in a text editor.
    • (Optional) Change the "Name=" line to the name of the new profile folder you created, e.g., Name=newprofile
    • Change "IsRelative=1" to "IsRelative=0"
    • Change the "Path=" line to the actual location of the new profile folder, e.g., Path=D:\Mozilla\Firefox\Profiles\newprofile.
  5. If you are moving a profile from its default location, the original profile folder can now be removed.
  6. Open Firefox or Thunderbird, to test if the profile move was successful.

Important: Instead of editing the "profiles.ini" file by hand after performing steps 1, 2 and 3, you could alternately use the Firefox or Thunderbird Profile Manager to create a new profile [2], using the "Choose folder" option to select the new profile folder. You can also use the Profile Manager again to delete the original profile (always use the "Don't Delete Files" option as a safety precaution when deleting profiles).

When you restart Thunderbird, go to "Tools -> Account Settings" and for each account (including Local Folders), click on "Server Settings" and verify that "Local directory" is pointed to the correct location. If it isn't, then click on the "Browse" button to fix it. You may need to exit and restart Thunderbird for these changes to take effect.

Method 2

Thunderbird or Mozilla Mail users may wish to use this method for moving all mail, address books, and account settings.

  1. Create a new profile in your desired location. Exit Thunderbird (or Mozilla Suite).
  2. Copy the entire contents of your original profile folder, including all subfolders, to the new profile folder location.
  3. Next, find the prefs.js file in the new profile folder, open it with a text editor such as Notepad, and replace all instances of the old profile folder location and name with the new profile folder location and name. For example, replace all instances of "C:\\Documents and Settings\\WindowsUserAccountName\\Application Data\\Thunderbird\\Profiles\\********.default" (normal location of the default profile on Windows XP) with "D:\\NewLocation\\NewProfile" (the new profile location). When finished, save the prefs.js file.
  4. Launch Thunderbird with the new profile and verify that your mail and settings have been migrated succesfully. If your mail folders appear empty after starting up, go back to step 3 and check the path names carefully. Also see the "Troubleshooting" section below.

Method 3

Instead of moving your profile folder, create a new profile and then migrate your settings to the new profile. Note: Thunderbird and Mozilla Mail users will have to manually set up all e-mail accounts again with this method.

Troubleshooting

If you have done all the steps in one of the above methods but the application's interface (such as toolbar buttons) looks strange or the application does not function properly, it could be due to interference from previously installed themes or extensions that you migrated along with the rest of your profile. Thunderbird and Firefox users can try starting up in Safe Mode, which will launch the application with extensions and themes disabled; if the application starts up OK, then extensions/themes are most likely the problem. In this case, you can try exiting the application, deleting the contents of the "chrome" and "extensions" subfolders in your profile folder, and restarting. [3] Be warned that doing so will cause you to lose all installed extensions and themes.

See also