Backup your Gmail

Like all hosted services, you should never depend on one provider to both manage your data and also back it up. I have 15 years of email in my Gmail account (that I migrated from previous providers) and I’d be pretty sad if I were to lose it.

As some users have discovered the hard way, if your Gmail account gets compromised and your email is deleted, you’ll likely never get it back unless you have an off-site (outside of Google) backup.

One great service that does this for you is Backupify and their free plan will backup mailboxes up to 1GB. I personally love cloud data but prefer local backups so I use Getmail which is a little Python script to download my email. Here’s a more detailed post on how to setup Getmail by Matt Cutts. That said, I have my script backup my entire mailbox (instead of just my inbox) and I use IMAP instead of POP so here’s my getmail.gmail config file:

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = myemail@mydomain.com
password = mypassword
mailboxes = ("[Gmail]/All Mail",)

[destination]
type = Mboxrd
path = ~/gmail-archive/gmail-backup.mbox

[options]
verbose = 2
message_log = ~/.getmail/gmail.log
read_all = false
This entry was posted in Cloud Computing, Linux, OSX, Systems Administration, Technical. Bookmark the permalink.

One Response to Backup your Gmail

  1. I usually do not need to back up my Gmail inbox emails but no one knows when you need to. Thanks a ton for the insight Todd.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>