No apologies for how infrequently I blog here – if you look carefully online you’ll find I have another blog that is all about my teaching of Computing.
This post is another solution for linux that may be helpful to others. Like many people, my wife uses a USB stick to transfer files she’s been working on to different computers in different classrooms she’s teaching in at school – and to bring them home to work on too. After losing work once too often through disk failure, I decided I needed to get a backup solution that was entirely transparent for her but worked every time.
The obvious thing is to take a copy of the disk each time it’s plugged into the Ubuntu PC at home and then let my Crashplan backup do the rest. Making this automatic was a little more tricky than I expected!
As I know rsync I’ll use that to move files across to a folder in her user area. Easy.
First I tried using udev to trigger it, It took me a while to test this fully, but my final conclusion was that because the script had to complete before the disk was handed off to another service to mount, that was a dead-end for me.
I had written a pretty full script for checking it’s the correct disk and where it’s mounted by this point, so I found in my research something called devmon which is now part of udevil. This allows me to run a script whenever a new disk is mounted – and since my code already checks for the correct disk before running any backup, that’s all good.
I made the devmon command to run on startup for all users, too – creating a startup .desktop through the gui with this command:
devmon --exec-on-drive "/home/jane/Programs/jane-usb.sh"
This is the script it launches any time any drive is mounted. It will only sync if the right drive is present, using UUID.
#!/bin/bash started=`date` #this is the UUID as found by running mount and blkid then looking for the right device usbdisk='8553-6FF8' sleep 0 if [ $(blkid | grep -c 8553-6FF8) = 1 ]; then mydev="$(blkid -l -o device -t UUID=$usbdisk)" echo "Device $mydev available" #I had an issue with it running before mount was complete. This loop will make sure it's properly mounted before running rsync waitTime=0 while [[ $(mount | grep -c $mydev) != 1 && $waitTime -lt 5 ]]; do sleep 1 echo $waitTime ((waitTime++)) done #if the correct device isn't mounted we'll sync, otherwise end if [ $(mount | grep -c $mydev) = 1 ]; then mnt="$(mount | grep $mydev | cut -d ' ' -f 3)" echo "Mounted at _$mnt _" rsync -ax --delete $mnt/ /home/jane/usb else exit 1 fi else exit 1 fi echo Backup done, started at $started, finished at `date` echo Backup done, started at $started, finished at `date`>>/home/jane/Programs/jane-usb.log

 The Exodus story looks very different to the Genesis based one we tell in church. First up, God hears ‘us’ in our time of need and oppression (the ‘us’ is essential and is made really clear in the passover celebration “we were slaves in Egypt…”). Next, he displays his power over the things that oppress us and frees us decisively. Then he goes on to give the good gift that teaches us how to live freely and in relationship with him despite our continual failure.
The Exodus story looks very different to the Genesis based one we tell in church. First up, God hears ‘us’ in our time of need and oppression (the ‘us’ is essential and is made really clear in the passover celebration “we were slaves in Egypt…”). Next, he displays his power over the things that oppress us and frees us decisively. Then he goes on to give the good gift that teaches us how to live freely and in relationship with him despite our continual failure.
 The nativity story is probably the best known Bible story, so it’s the one that’s most augmented. Pretty much every primary school on the planet is trying to do a different nativity play, a different spin on what we’ve heard every year since we were in the play ourselves. And every year there’s a sermon that suggests a new or different way of looking at the story, too.
The nativity story is probably the best known Bible story, so it’s the one that’s most augmented. Pretty much every primary school on the planet is trying to do a different nativity play, a different spin on what we’ve heard every year since we were in the play ourselves. And every year there’s a sermon that suggests a new or different way of looking at the story, too. We’ve heard a million times how Jesus was born in a stable, but look in your actual Bible (not the kiddy story book!) The word stable isn’t in there – because normal people (i.e. non-millionaires) in the near east would not have had separate stables, but rather animals shared the single room of the house on a slightly lower floor to the people. Bailey goes into much more detail that I can (p28-31) showing that the normal arrangement was to have a manger in the house, that Jesus had been welcomed into someone’s home. The shepherds found him, found there was nothing more they could do for the family and went to tell everyone, praising God.
We’ve heard a million times how Jesus was born in a stable, but look in your actual Bible (not the kiddy story book!) The word stable isn’t in there – because normal people (i.e. non-millionaires) in the near east would not have had separate stables, but rather animals shared the single room of the house on a slightly lower floor to the people. Bailey goes into much more detail that I can (p28-31) showing that the normal arrangement was to have a manger in the house, that Jesus had been welcomed into someone’s home. The shepherds found him, found there was nothing more they could do for the family and went to tell everyone, praising God. The reciprocal gifts of contemporary Christmas are the opposite of the giving of that first Christmas – self interested and meaningless. The giving of Christmas is pure love, un-returnable gifts, utter dependence on the generosity of others. I can almost hear an echo of the grown-up Jesus as I suggest that maybe we should only give to people who can’t give back to us this year. Sadly, this kind of giving and receiving is perhaps
The reciprocal gifts of contemporary Christmas are the opposite of the giving of that first Christmas – self interested and meaningless. The giving of Christmas is pure love, un-returnable gifts, utter dependence on the generosity of others. I can almost hear an echo of the grown-up Jesus as I suggest that maybe we should only give to people who can’t give back to us this year. Sadly, this kind of giving and receiving is perhaps 



 I had an email conversation with a member of our church over an article talking about church websites. The article prompted me to question whether we had ever thought about the purpose of our website and whether it matched what the article was saying.
I had an email conversation with a member of our church over an article talking about church websites. The article prompted me to question whether we had ever thought about the purpose of our website and whether it matched what the article was saying.