Time Machine and Linux

Previously I had written about using an Ubuntu server to host Apple Time Machine backups.   Now that I’ve retired the old server, I needed to re-do some of that work to get backups running again.  This time I decided to skip Part A – which was about enabling AFP to make it as Mac friendly as possible.  My new setup simply uses Samba to expose the previously created time machine volume as described in Part B of my old post.  This seems to be working just fine.

I learned the backup lesson the hard way, losing a 20Gig drive a few years ago.  There are in my office two dis-assembled hard drives: one which is the failed drive, and the second was a working same model number drive I bought on eBay.  The plan was to swap the controller board to hopefully save some of the data (it was my old web server).  It turns out that even though the drive models were the same, the internals were different – one drive had a single platter, the other a dual platter.  If this blog posting gives you that “yeah, I should really get my backup story sorted out” feeling, then go do something about it right now.  Hindsight is 20/20.

I meant to take a picture of that pair of drives to accompany this post, but failed to get a quick picture before I left the office.  I figured that I’d use the Creative Commons material from Flickr for this post.  It turns out that giving the correct attribution to the photo is a bit of a pain via Flickr (they should really fix that) – but there is a solution: www.ImageCodr.org.  With a few clicks and a cut and paste from the Flickr photo you want to use, you get an HTML snippet to use.

I had been using rsync to do backups on my old server, backing up from the main drive to one of the data drives.  As well, a number of the machines around the house would rsync backup over the network to the server.  On my new server I’m using rsnapshot, which is based on rsync but provides some nice scripting to give you a nice set of default behaviours.  Setting it up to do local backups from the server main drive to a mounted data drive was trivial.

Using rsync you can configure incremental backups – utilizing hard links to provide multiple full directory trees, with only a small increase in disk footprint.  Rsnapshot uses this facility to provide hourly, daily, and weekly backups – very similar to Time Machine’s backup story which as the data gets older, you get less granularity.  I’ve set it up with daily, hourly and monthly backups – after a few weeks it looks like this:

drwxr-xr-x 3 root root 4096 2009-04-21 00:30 daily.0
drwxr-xr-x 3 root root 4096 2009-04-20 00:31 daily.1
drwxr-xr-x 3 root root 4096 2009-04-19 00:30 daily.2
drwxr-xr-x 3 root root 4096 2009-04-18 00:31 daily.3
drwxr-xr-x 3 root root 4096 2009-04-17 00:31 daily.4
drwxr-xr-x 3 root root 4096 2009-04-16 00:30 daily.5
drwxr-xr-x 3 root root 4096 2009-04-15 00:30 daily.6
drwxr-xr-x 3 root root 4096 2009-04-14 00:30 weekly.0
drwxr-xr-x 3 root root 4096 2009-04-07 00:30 weekly.1

So while I’ve got many full file trees, through the use of hardlinks only 4.7Gig of storage is being used to have 9 copies of a 3.7Gig file tree.

Reading Material

img_1094I read regularly – aside from spending countless hours in front of a computer screen I also like to sit down with a book.  My collection is pretty heavily skewed towards speculative fiction.  Similar to my DVD collection which I re-watch, I like to re-read books.  Some of the classics (Dune) I’ll read every couple of years, most go longer between reads – but there is hardly a book in my collection I haven’t read twice.

This year I’ve read a lot of Neal Stephenson’s work – having finally got my hands on the last two books in the Baroque Cycle, I re-read Quicksilver and worked my way through the whole series.  If you haven’t read any Neal Stephenson, start with Snow Crash.  Lots of his more recent work is more of a slog through, and the style won’t suit everyone – I personally enjoy it, but it does take a few hundred pages to get into.  I very recently finished Anathem – again, not for everyone, but I thought it was a great read.

There have also been a few eBooks I’ve read through.  I still really like having a physical book, so the eBooks I’ve read have been free ones – but there are some good free books out there, and its possibly going to get me hooked on eBooks.

  • Little Brother – Cory Doctorow
    Very entertaining.  I read Eastern Standard Tribe (physical book) and wasn’t as impressed.
  • The Hacker Crackdown – Bruce Sterling
    I may have read this when it came out, but its referenced by Little Brother and a neat companion read.
  • OVERCLOCKED – Cory Doctorow
    Some short stories, and like all of Cory Doctorow’s work is available free.  (Yes, you can also buy his books from bookstores)
  • Hal Spacejock – Simon Haynes
    This is the first in a series, I’m only part way through it – fun so far.  The rest of the series is non-free.
  • Fallen Angels – Jerry Pournelle, Larry Niven and Michael Flynn
    I haven’t gotten to this one, but with these authors I’m sure to enjoy it.  This one comes from the Baen Free Library which has many more titles.

I’ve been reading these on my NDS using dslibris.  Using OpenOffice.org to export to xhtml, I did have a problem with the export but found this helpful explaination that lead to the fix.  I did already have a java runtime installed, but OpenOffice.org needed to be configured to know about it.

Books are sort of like software, eBooks more so.  It is interesting to see what has happened to music through the digital revolution (mp3’s), and now we’re starting to see TV and Movies go through the same transformation.   What happens when matter assemblers become available?  Suddenly even physical objects will be trivial to replicate – once the cost gets driven down, what then?  Time to go read some fiction..