I use Mozilla Thunderbird 2.0.2 and would like to backup my e-mail account settings. I don't want to backup the actual e-mails.
I have found a software called MozBackup which is running on Windows only. Is there a way to do that under Linux?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityI use Mozilla Thunderbird 2.0.2 and would like to backup my e-mail account settings. I don't want to backup the actual e-mails.
I have found a software called MozBackup which is running on Windows only. Is there a way to do that under Linux?
You have (at least) two options:
You could try to use MozBackup with wine. Wine is a compatibility program to use Windows applications on Linux and Mac. There is no entry for MozBackup in the compatibility database yet, so no idea whether it's going to work or not. If you take this approach, please create a testing report for others to see.
Your second option is to just copy everything residing in your profile folder except the folders Mail and ImapMail. This is what MozBackup does internally, it just creates a zip file with your data in it. The profile folder is in
~/.thunderbird/Profiles/<id>
where id is a randomly generated string. Just look around and identify the folder with your emails in it.
Update: I just tested MozBackup with wine. It seems to install and run well, but I didn't test the backup integrity, so beware. Steps:
Generate a symlink to your thunderbird folder:
ln -s .thunderbird thunderbirdlink
Run MozBackup, select "Portable" when choosing your profile.
remove your symlink with
rm thunderbirdlink
For another backup or restore, repeat steps 4-9. Or just leave the symlinks alive and only do steps 6-8.
~/.thunderbird/
folder on Ubuntu 18.04
Thunderbird's settings are in a file called prefs.js
your Thunderbird profile folder. These include e-mail settings as well.
To get the location of profile folder:
about:profiles
Root Directory
In this directory there's a file prefs.js
. You can see your preferences in that file. You probably don't want to back up all these settings, because some settings are (operating) system specific. Aside from that, the file itself says you shouldn't change this file directly:
// Mozilla User Preferences
// DO NOT EDIT THIS FILE.
//
// If you make changes to this file while the application is running,
// the changes will be overwritten when the application exits.
//
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile.
So if you want to backup your e-mail account settings, you should find the relevant settings in that file and put them in a file called user.js
. Then you can copy this file to another machine and put it in the profile folder over there, just next to the prefs.js
file.
Note: also settings that you adjust in the about:config
page (that you can reach through Preferences -> Advanced -> Config Editor) are saved in prefs.js
so you can also copy these to your user.js
file to retain possible adjustments you made.
Disclaimer: I have never backed up my e-mail account settings, just some general Thunderbird preferences, so I don't know which settings you'll need to back up exactly to make it work properly.