How can I do a backup of my Thunderbird inbox

5,535

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
Share:
5,535

Related videos on Youtube

Derek Fritz
Author by

Derek Fritz

Updated on September 18, 2022

Comments

  • Derek Fritz
    Derek Fritz over 1 year

    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.

    • Rinzwind
      Rinzwind over 9 years
      Please alter this question to EITHER firebird OR thunderbird. Both are software from Mozilla. The 1st is a database, the 2nd an email client. So either your title is wrong or your tags.
  • Derek Fritz
    Derek Fritz over 9 years
    Thank you, @Mahesh, for seeing through my geriatric brainfade. Unfortunately, CTRL + H won't get me into the .thunderbird folder, while 'Copy' and 'Copy to' are also forbidden . Presumably I will have to go in via the terminal, but I don't know the syntax. I guess the command will start with 'sudo cp', but I would appreciate confirmation and further guidance.
  • Mahesh
    Mahesh over 9 years
    @DerekFritz just noticed your comment, the edit hopefully helps.
  • Calamity Jane
    Calamity Jane over 2 years
    That doesn't work either. It also gets stuck at a certain file, when I want to rsync the folder.
  • v010dya
    v010dya over 2 years
    @CalamityJane It is unclear what you are referring to. What "doesn't work". What errors are you getting? Are you getting them during the backup or during something else? My answer only talked about making a backup, if you need to make it on a remote machine, it would be best to ask a different question and link to this one explaining how it is different (so that it won't get marked as a duplicate).
  • Calamity Jane
    Calamity Jane over 2 years
    oh my bad.... I commented under another post with the same topic! Sorry! That is the post I thought I was commenting on: askubuntu.com/questions/1374004/…