How can I do a backup of my Thunderbird inbox

Ubuntu 14.04 is seriously misbehaving, and I only have access to the terminal. I propose to do a full reinstall, but want to backup the Thunderbird inbox for reinserting if it is otherwise lost in the process. This web access is from a trial version of 14.04 on DVD, and 'backups' is available. The HDD is shown on the desktop as a mass storage device, within which all the system folders appear to be accessible. What do I have to do to pull out the inbox (at least) and transfer it (or a copy) to an external mass storage device.

Thanks for any help,

Derek F.


Solution 1:

I am assuming you mixed up and are referring to thunderbird, based on your tags. Guessing from your description, opening your HDD shoud show a folder home. Enter it and you should see your username. Enter it and press Ctrl+H, locate .thunderbird and copy it over to external storage.

Your home should be the folder home/<username> on whichever drive your Ubuntu was installed. Thunderbird stores all its data in .thunderbird in your home. By default files and folders starting with a . are hidden, you can press Ctrl+H to toggle showing hidden files from the file browser.

On a fresh install, copy it to your home folder before starting up thunderbird for the first time and it should automatically reuse all settings and downloaded email.

I'm assuming you located your hard disk and an external drive to copy files to.

cp -r /path/to/harddisk/user/<username>/.thunderbird /path/to/externaldisk/thunderbird-backup

If it fails, try sudo. You may have to correct permissions after restoring, though. To restore it, run:

cp -r /path/to/externaldisk/thunderbird-backup ~/.thunderbird