Why is backing up my e-mail so difficult?

3 Comments

Since I began using Ubuntu I have been taking great joy in automating the download of back up copies of the data I have stored on-line, e.g. the database and files for this very website. However, there is one back up job that has refused to be automated – backing up my e-mail. So this post isn’t going to be my usual how to type of post, it’s going to be outlining what I want to do, the problems that have stopped me getting there.

To start with, all of my e-mail is up in the cloud, because I use IMAP. I don’t want to change this, because with POP I would have to have all my e-mail only on my home computer. That’s no good for me trying to find something in my e-mail on my phone or the web when I’m away from home. Although, I trust no server, so I want to know that if my IMAP server goes boom for whatever reason, it’s okay because I have a copy of all my data at home ready to be uploaded to another server.

Thunderbird_dock_icon_2My favourite IMAP supporting E-Mail client is Thunderbird (because it’s open source and cross platform). Thunderbird has off-line storage for IMAP, which is great. All I have to do to get an up-to-date copy of my e-mail is load up Thunderbird and tell it to go into off-line mode. It will then download any messages it doesn’t have, and also delete any messages I’ve deleted on the server.

This is great, although there’s two problems. Firstly, there’s no way to automate this. Secondly, if for whatever reason you loose all the e-mail on your server, you can’t use your local copies to synchronise back to the server, using Thunderbird. Instead, Thunderbird only synchronises server to client. So if there’s nothing on the server, it’ll wipe your off-line copies.

Thunderbird does support upload of messages to IMAP servers, so I had thought that when needed to do an emergency restore of my e-mail, I could simply use my file manager, navigate to my Thunderbird profile, and copy my IMAP mail files, to Thunderbird’s “local folder” store. Although, for some reason Thunderbird can’t read these properly, and you see that after doing this, the message count is wrong (and some strange malformed messages appear), so this method will cause the loss of some messages.

I had to think of something else.

ss01_Mailbox

IMAPSize

If you Google around for “IMAP backup”, you will invariably come across the Windows application “IMAPSize”. This is a great program that I have used before. I even discovered that IMAPSize supports command line options, and if you can run something by command line, you can set up a schedule for automation! I should add here that I’m in Linux so I had to use IMAPSize through WINE, and I found that IMAPSize was very slow to download messages, and this might have been because of using it through WINE, I don’t know.

Performance aside, I hit a short coming of IMAPSize. While it does indeed perform incremental back up of your e-mail, it doesn’t actually remove local messages that have been removed on the server. I verified this by creating test messages, running IMAPSize backup, then going back to the server to delete and expunge them (just to be sure), then re-running the IMAPSize backup. After checking, I could see that the deleted messages were still in my local backup.

So, this is where I am, I am stuck manually backing up my e-mail every few days, by means of having Thunderbird perform the local synchronisation I require (i.e. matching all changes on the server). Then the only progress I made was that I now know that I have IMAPSize to upload/restore the messages that Thunderbird downloads.

Although, this is a two app solution that I have to do through the graphical user interface. If only IMAPSize would remove messages that are not present on server, and if I could get it to play nicely with Linux’s cron scheduler, I would be happy.

It’s amazing to me that there isn’t a command line program that does what I’m looking for. I’ve asked a lot of people, who know far more about such things than I do, but everyone seems to say the same thing to me, Don’t know of one but it’d sure be useful“.

So, if you know of something that’ll do what I’m looking for, please let me know in the comments.

Share this post

Tip of the week – 26th June 2009

2 Comments

[Windows & Mousing Tip]

I’m really excited about this one, such much that I made it jump the queue smile

Do you use Alt-Tab (or Ctrl-Alt-Tab in Vista) to switch applications a lot? Would you like to do be able to do it with your mouse?

Now you can, simply download a tiny executable from:
http://cybernetnews.com/2008/02/24/alttab-mouse-shortcut/

The XP version of this is towards the end of the article.

You simply hold down your left button and repeatedly press your right button to cycle through each running application.

I have a Logitech mouse with an application switching button, although my middle click is broken. This shortcut has allowed me to reassign my “Document Flip” button to be my middle click, while still being able to switch applications on my mouse.

I’d be really interested to hear if there are similar programs out there for Mac and Linux.

Share this post

Tip of the week – 19th June 2009

No Comments

[Cool Tip]

What’s that I hear you say?

Dave, I have this JPEG on my computer that would make an excellent poster, but if I scale it too much it looks like a mess!

Not to worry, I have the answer for you. You need to Rasterbate, and no you won’t go blind. Just head over to http://homokaasu.org/rasterbator. You can upload your image, and in return you’ll get back a multi-page PDF file which you then print.

Your print outs give you a black & white version of your image, you simply stick each page to your wall to build up the image.

Take a look at their gallery to see what I mean.

Edit: It seems you can have colour blow-ups too!

Share this post

Thursday night’s outage

No Comments

Okay so what the heck happened to the site on Thursday night?

caution-signIt all boiled down to running out of storage quota on my server. My server account had crept over its quota limit without me knowing. Things were still working like this, but since WordPress 2.8 (the software that runs this website) came out on Thursday I ran the upgrade, and then we hit problems.

Anyway, lots of technical details later storage quota was extended and the site was put back as it was, and subsequently upgrade to WP 2.8.

Why am I telling you all this? Well the moral of the story is that no matter what you’re doing – keep backups of everything you do! Had I not had backups of this site, it would be trashed now. Moreover, had my backups been better organised, the site would have been up several hours sooner.

I’ve now improved my file backup procedures to be automatic so they’re always up to date. Fortunately, I was already using a WordPress plugin which e-mailed me a daily backup of my database.

Make sure you keep your stuff backed up too.

Share this post

Tip of the week – 12th June 2009

No Comments

[Security Tip]

If you want to test how good your hardware or software firewall is, then there is a SAFE website you can visit which will probe your defences !

It’s called “Sheilds Up” and you can see it at:
https://www.grc.com/x/ne.dll?bh0bkyd2

Share this post

Older Entries