Backing up Gmail with Gmvault

This weekend I have been experimenting with Gmvault (http://gmvault.org/) in order to back up my various Gmail and Google Apps accounts to my computer. I’m using Mac OS X, but almost all of this will work with Linux too.

Firstly I downloaded the software, extracted it, and ran the following command once to download all of the mail in each account:

./gmvault synch example1@gmail.com

I then wrote a script to automate the process:

#!/bin/bash
#change to the correct directory
cd /Applications/gmvault/bin/
#run a quick sync on all my gmail and google apps accounts
./gmvault sync -m -t quick example1@teknostatik.org
./gmvault sync -m -t quick example1@gmail.com
./gmvault sync -m -t quick example2@gmail.com
./gmvault sync -m -t quick example3@gmail.com

Once that was working, I automated it with cron to run a few times a day.

Restoring the email to another Gmail account is a slow process, and you should probably only do it a few times a month (and always overnight). Again I’ve scripted this bit, but have commented everything out unless I actually need it. Having done the initial upload, and because I now have two local copies of everything, I’ll probably only run this one monthly.

#back up all downloaded email to a dedicated gmail account in the cloud
#./gmvault restore backup_account@gmail.com
#or just for the last month
#./gmvault restore -t quick backup_account@gmail.com

Further reading:

What I’m using to get the job done in 2012

A couple of years ago I documented the hardware and software I use as a homage to http://usesthis.com. I thought it was probably time to update it.

I’ve been working with Macs and with OS X for most of the past 18 months. As a result of this, most of my hardware has shifted from generic Dell and Sony machines running Linux, to Macs running OS X. I still maintain a couple of physical Ubuntu/Debian machines, but mostly virtualise now, especially as by using powerful Apple hardware I can create VMs that are significantly more powerful than their physical counterparts.

I do most of my work on either a Macbook Pro or Macbook Air, both of which were the absolute bottom-of-the-range at the time they were purchased. I generally have one of these machines with me wherever I am. I also have access to a more powerful Mac desktop, as well as several VMs covering OS X, Windows, Debian and Ubuntu.

At home I have a 2011 Mac Mini, a generic monitor, and the same keyboard and mouse I was using 5 years ago. I back everything up to a large external hard drive and a NAS device that also streams media to an ancient Mac connected to the TV in the living room. I also have several laptops set up for specific purposes, but am in the process of moving everything important onto a series of VMs hosted on the Mac Mini.

I also have a Kindle 4 (the £89 no frills model), and am really enjoying being able to read books on the train without breaking my back or zapping the battery on my phone.

Since I went truly cross-platform, I’ve simplified things a fair bit. I use Chrome (home) and Firefox (work) for browsing, and use Google’s web-based apps for pretty much everything. At work I use Microsoft Office 2011 for those things that require it, but am getting to the point where I can be fully productive with a web browser and a terminal session. This makes moving between Mac OS X and Ubuntu easy, as does having everything I’m working on in Dropbox so that as long as I’m on one of my machines I can sync my changes back home instantly.

I think if I was starting again with setting up what I needed to make me truly productive, I’d go for a maxed out Macbook Air coupled with a 27″ Thunderbolt display in every place I worked. I’d also want a Debian or Ubuntu server to deal with backups, storage, and working on Linux specific tasks. None of this is out of the question, but is hard to justify until the machines I currently use cease to be of use.

Looking back and looking further forward

By this time tomorrow I will have successfully implemented the support of Mac OS X in my workplace. It’s been a long 14 month slog, but I’ve learned a lot about Macs, project management, and a fair few things beside. I’ve also lived pretty much wholly in Mac OS X since April 2011, which scared me at first but now feels oddly familiar.

Next up will be iOS and Linux. iOS is a new thing for me, but Linux certainly isn’t, and it was quite soothing today to open up my Linux laptop and do my first bit of Ubuntu work for nearly a year.  I’ve also (finally) given up Gnome 2, and after a brief dalliance with Gnome 3 have decided that Unity is the interface that I’ll use on all my Linux machines from now on.

Not that I’m giving up my Macs though. Unity and OS X are actually quite similar in a lot of ways, and I see both of them featuring heavily in both my personal and professional future.

New ways of working

My day job is currently taking me deep into the heart of Mac OS X. It’s not a bad place to be, but it requires me to think in a slightly different way. Thankfully I don’t really have to touch Windows at the moment, which means I’m only bouncing between OS X and Linux, which isn’t too far to jump, and feels quite comfortable now.

This slight shift in focus has lead to a shift in the hardware and software I use, and I’ve found myself (finally) using the GMail interface more and more for email, and  almost reaching the point where I do pretty much everything through a browser of some sort. I’ve also used about 10 different Macs over the last 6 months, so might get round to writing some sort of comparison post at some point.

Oh, and the other change in the way I work comes from Google+, which seems to be the place where I post videos and babble about music.