Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using gmail as a part of Google Apps for Domains. I'd like to back up all my email.

I've tried setting up IMAP in Thunderbird and it works reasonably well (except it times out way too much, forcing me to help it along manually). However, I have a ton of labels, which in the IMAP land map to folders. And in Thunderbird, you have to click on each folder separately and tell it to download everything. Painful.

Is there a tool that will let me do this easier?

share|improve this question
    
Which OS are you on? –  nagul Aug 14 '09 at 23:47
1  
I am on Windows XP. –  AngryHacker Aug 14 '09 at 23:50
    
+1 for XP I would never have left, but my h/w won't even run XP install :-( –  Mawg Oct 27 '12 at 13:01

6 Answers 6

up vote 8 down vote accepted

There are many ways to do this:

share|improve this answer
5  
I'd not recommend anything that uses POP (like the first two links, and possibly the 3rd as well). When one needs to restore, a huge archive with POPped messages is not going to help a lot, and it does not include sent items. –  Arjan Sep 13 '09 at 9:08
1  
Hello, be careful with gmail backup (see my comment below!) –  Erb Oct 15 '10 at 6:25
1  
Warning: many of these posts suggest using POP, which does not back up all your mail - only messages with the Inbox label. –  Yang Jan 4 '11 at 6:02
    
It's not really helpful to answer with a set of links - which of the 5 should I take now? –  Frank Meulenaar Jan 14 '12 at 15:23

Most email clients when viewing over IMAP will clearly distinguish between the IMAP store and the local store.

Simply copy the messages / folders to the local storage using your email client's copy command, and it should copy the messages in the local storage.

Make sure not to move them, since this will more than likely remove them from the email server.

Edit Outlook seems to handle IMAP servers a lot better than Thunderbird does from my experience. Perhaps it would be a good idea to get a copy of Office 2003 / 2007, and work from that? (Legal copy of course :P)

All the major windows clients (Thunderbird, Outlook) will clearly differentiate between the local storage and the IMAP store. Not sure about Windows Mail or OE though.

share|improve this answer
    
Funny, I've always had trouble with IMAP in Outlook. (Especially as it needs a rule to copy your sent items to your Sent Items folder, which is horrible when using multiple accounts. But For Gmail, one could use the Gmail SMTP server which copies the sent items by itself.) Thunderbird has always worked great for me. –  Arjan Sep 13 '09 at 7:40

http://www.gmail-backup.com/

share|improve this answer
    
This does not work for me as it saves each individual mail as a separate .eml file. I need to be able to see the emails in an application of some sort, search through them, etc... –  AngryHacker Aug 15 '09 at 0:13
3  
Hello, be careful with "Gmail Backup" as it has a big bug: it removes the unread status of your gmail messages ! see gmail-backup.com/lost-read-marks –  Erb Oct 15 '10 at 6:23

Not written for backup purposes, but: see also How to Access Gmail When It’s Down at Lifehacker.

As for backing up Gmail:

When using IMAP to backup Gmail, one also needs to backup the local IMAP storage. When not doing that, then when messages get deleted on either the server or on the local machine, they will also be gone on the other machine upon the very first IMAP synchronisation. So, using IMAP by itself is not a backup. (As for actually downloading the message, ensure to disable options such as "Fetch Headers Only", and for Thunderbird see also the mail.check_all_imap_folders_for_new setting.)

When using POP (like when using getmail or fetchmail as listed in nagul's answer) then one should consider how to restore this if ever needed. POP does not know about any folder structure. Even worse: using POP you will basically download every message you ever receive. Even if you delete it on the server (like through the Gmail web site) then the local copy will still exist. If you ever need to restore then you have to go through a huge pile of messages and need to find the messages that are still of interest. Also note that using POP does not backup the Sent Items.

share|improve this answer

Would Offline GMail be sufficient?

share|improve this answer
    
I guess that suffers from the same problem as IMAP: unless you backup the offline storage, anything deleted from either the server or the local machine, will be deleted from the other machine upon first synchronisation. Not a good backup then, but at least IMAP is not some proprietary format, so an IMAP storage can be restored from a real backup. (I wouldn't know what to do with a backup of the Offline Gmail storage.) –  Arjan Sep 13 '09 at 9:12

A good general-purpose tool for maintaining local copies of your mail is OfflineIMAP. Here's my config file (with personal info censored) for backing up my gmail:

[general]
ui = Curses.Blinkenlights, TTY.TTYUI, Noninteractive.Basic, Noninteractive.Quiet
metadata = ~/.offlineimap
accounts = GMail
maxsyncaccounts = 1

[Account GMail]
localrepository = Gmail-local
remoterepository = Gmail-remote

[Repository Gmail-local]
type = Maildir
localfolders = ~/Mail/Gmail
sep = /

[Repository Gmail-remote]
type = Gmail
remoteuser = ********@gmail.com
remotepass = ********
holdconnectionopen = true
keepalive = 60
maxconnections = 1

Yes, unfortunately, you put your password in plaintext in the config file. There may be a better way, but I'm not paranoid enough to go looking for it.

share|improve this answer

Your Answer

 
discard

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.