Bag of Spoons
Just off the A1(M)

Tue, 14 Feb 2006

Backing up my Computer

Backing up your computer data is a waste of time, until something goes wrong. I've been pretty lucky so far and managed not to lose anything really important. I've never had a hard disk suddenly die. Backing up is one of those things that I keep thinking I should do. I have burnt data to CDs in the past. To be even safer I keep them somewhere other than at home, so even if there was a fire I would not lose it.

What I really wanted was a way to create a safe, off-site backup that would keep track of my latest files. I have access to a remote Linux server that has plenty of disk space so that looked like a good place to put it. I tried various tools:

Konserve is a friendly little program, but I found it too limiting in specifying which files I wanted to back up. I want to be able to exclude certain files and directories within the structure I was backing up.

Sbackup looked more promising. It's GUI lets you select files to include and exclude. by location and size. The problem was that I just couldn't get it to connect to my remote server. This has to use an encrypted connection, which is what I would want anyway.

The real geek choice is rsync. It's a pure command line tool that can do incremental backups to anywhere you like. I just didn't get as far as reading all the necessary documentation.

Then I read this article about rdiff-backup. It sounded like a friendlier version of rsync. It's even written in Python, but I'm not sure I'll be hacking it just yet. It requires the program to be available at both ends of the connection, so I had to get it installed on the server. Then I found that the version available to Ubuntu was too old. It was very easy to install the up to date one.

Running it is pretty simple. You specify the source and destination and away you go. Either end can be remote, so you can also use it to back up a web site. It automatically uses ssh, so communication is as secure as you are likely to need. I worked out how to use public keys to remove the need for passwords. To exclude files I just create a text file with a list in it.

So far I have backed up several gigabytes. Actually this was more than I intened as I accidentally included some big directories. This can take a very long time as my NTL broadband is a lot slower to upload than it is to download (256kb vs 2Mb). I think the longest one took 41 hours! As it is incremental it should be much quicker in future as only changed files will be sent. When I want to restore anything it's just a matter of copying it back as everything is stored in it's original form.

My next step is to automate the process so that I don't even have to think about it. That requires a little planning.

[20:27] | [/Computer] | comments (0) | G


About

Categories

Calendar
< February 2006 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728    

Archives
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-Jun
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
2004-Jun

Blogging
Subscribe if you like
XFN Friendly

Adverts
Linux.org
Get Firefox!
Flying Spaghetti Monster

Hosted at VeloceSystems

My reading
Anathem, by Neal Stephenson
Epic

The Bridge, by Iain Banks
Bargain

Colony, by Rob Grant
Bargain

That's Me In The Corner, by Andrew Collins
Xmas present

Global Village Idiot, by John O'Farrell
News humour

more...