Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I back up all emails stored in my Gmail account? Can some or all labels be preserved?

share|improve this question
just make sure you trust the programme you're using. g-archiver collected usernames and passwords. – Sebastian Jun 10 '11 at 10:56

The most simple way to do this is activating pop3 or IMAP in your "Mail Settings" and retrieving the email using your own client (Thunderbird, Outlook, etc.).

share|improve this answer
I'd advise against POP3, which will make it very tricky to synchronise your email across multiple clients. It has to be IMAP. – Mike Scott Feb 27 at 13:56

One way is to log in using a mail client that supports IMAP. You can then export the emails to a backup location, but this is a bit laborious.

If you want a continuous backup, you could try something like imapsync. This would require you to run your own backup IMAP server and schedule a regular task to perform the synchronisation.

Edit: Preserving labels should work fine, but not quite in the way that Gmail handles them. I've not seen any IMAP or POP3 servers which handle the Gmail label system properly. Gmail presents each tag as a separate folder through IMAP, so as far as the user is concerned, the message exists in several places. (In fact, the inbox is just another label). If you synchronise your account to another IMAP server, you will essentially have multiple copies of the same message.

share|improve this answer
More information on using IMAP to escape Google at the Data Liberation org. dataliberation.org/google/gmail – Anthony Mastrean Jul 1 '10 at 13:20

You can use a nice webapp (sic!) called Backupify to backup all your Gmail data (along with Twitter, Facebook and a bunch of other stuff).

share|improve this answer

Check out LifeHacker's answer to the same question.

In a nutshell, they said :

  • a paid service like Backupify
  • Gmail to Hotmail
  • your favorite email client as IMAP
  • unix 'fetchmail'
share|improve this answer

Gmail backups have become a somewhat timely topic, as thousands of Gmail users had their account reseted by accident recently.

Here's one more backup solution from the comments to that Engadget post:

I have all my GMail emails forwarded to my Hotmail account, of which all of the emails are downloaded locally on 2 different computers. I've had my Hotmail account since 1998, and I've never lost anything or had a problem so if GMail goes down, Hotmail will still work, and if that goes down, I have it all backed up.

Hopefully with this bump, we'll get even more good, up-to-date answers to the question. (At least gmail-backup.com, mentioned in the accepted answer, now seems defunct.)

share|improve this answer

I'm kind of find of IMAPSize. It's not the most fully-featured tool you'll ever find, but it backs things up in the most open way possible: each message in it's own file, which could easily be imported into any other e-mail client. It also includes an option for restoring from a backup (though I've never tested that).

Be careful when using IMAP mail clients for backups: I lost some mail at one point because I had thought Thunderbird was keeping local copies of things that it had decided it didn't need to keep. This was a config error on my part, but it's a warning to be careful.

share|improve this answer

Theoretically speaking, you can open up another gmail account and use it to pop your mail from the first account. You can chain this to have many different gmail accounts backing your mail up.

If you automatically label your messages, then you can redefine the filters in each account so that labels continue to apply.

share|improve this answer
While this may guard against certain failures (one's own mistakes), it may not guard against others. File under "Do not put all your eggs in one basket." ;-) – Chris W. Rea Feb 28 '11 at 14:45
Its helpful if your gmail account is filling up and you want to split your mails in two accounts to have more space. So more like "put your eggs in two baskets of equal size but joined together, at least you can put more eggs" :-) – Yasser Feb 28 '11 at 15:58

I developed Gmail Keeper for this. Why I've done that when there are other tools out there? Because I need to backup multiple Gmail accounts on a regular basis, and I don't want to input the login info each time when I need to make a backup.

Both emails and labels will be backed up to local disk in standard file formats (eml and zip). It can also backup the Gmail chat logs if you enable the 'Chats' folder access in the advance IMAP settings in Gmail. However, It's for Windows only.

share|improve this answer

MailStore Home edition allow backup gmail mail via IMAP.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.