Featured Posts
A very Krunk Christmas Photo Shoot!

A very Krunk Christmas Photo Shoot!

I have been collecting a few new sets of figures this year including a some cthulhu's. And i decided it might be fun to do a photo shoot using some of the christmas release dunny's from kidrobot and some of the cthulhu's I have gotten. Here are some of the ...

Read More

A Week in Photos - At Brussels Bonsai 2009

A Week in Photos - At Brussels Bonsai 2009

These Pictures were Uploaded earlier this year after the anual Brussels Bonsai Rendezvous event. This is really an old post but I want to populate some interesting posts. Rendezvous is an annual convention held Memorial ...

Read More

Miami Photo Walk - Coconut Grove/Southbeach

Miami Photo Walk - Coconut Grove/Southbeach

I have been wanting to start doing photo articles about events and cities I have gone to for a while now. This was encouraged by reading www.dannychoo.com who does some really good photo articles on japan and the cultural themes of the otaku culture there. I do not want to ...

Read More


Goals for Twenty Ten

by admin on January 12, 2010

I have never been a big fan of new years resolution since they often go by the way side. But on the other side of the coin I think everyone should have goals, both long and short term. So in that vein here are my goals for this year. (in no particular order)

  • Simplify and de-stress – I want to try to stress less about work and other things this year and concentrate on the things that are important.
  • Move, which hopefully is a good opportunity for the above.
  • Try to blog regularly
  • Spend more time with my wife and son
  • Get back into developing (not full time but I feel I should do it to maintain my perspective in what I do)
  • Encourage others to help more with local conferences (new blood is always good)
  • Follow up with contacts
  • Continue reading in the evenings which I started to do again a lot recently

Over the coming year I may edit this list as a kind of checklist as to where I am at the moment so stay tuned.

{ 0 comments }

I am starting a few new blogging series this year the first one will consist of Tech tips that I find during the course of work or when working on private projects. I have alot of these bookmarked in firefox or delicious as I am sure many if not most of you also have. I personally find that it helps me remember better if I write it down and it certainly helps if you have it in one quickly accessible location.

Now lets get down to the nitty gritty of of it. As many of you know to backup MySQL databases, there is the well known and handy executable called mysqldump. It has one big shortcoming though, you can either backup one database to a file or all databases to one giant file with the “–all-databases” option but you can’t backup every database to separate dump files.

This is not very practical if you have big databases and need to restore only a part of them…So I searched for a way to backup every database to separate files. The process is quite simple with a little scripting:

  • Find a way to list all databases
  • For each database, dump it to a file using mysqldump

Here is the solution that I found with some updates

#!/bin/bash
# This script backups every MySQL database to its own file

#Some variables you can set how you like
USER=’root’
PASSWORD=’mypassword’
OUTPUTDIR=’/root/backup’
MYSQLDUMP=’/usr/bin/mysqldump’
MYSQL=’/usr/bin/mysql’

#Clean up any old backups
rm -f $OUTPUTDIR/*

#Get a list of databases names except the system one
databases=`$MYSQL –user=$USER –password=$PASSWORD -e ‘SHOW DATABASES;’ | grep -Ev ‘(Database|information_schema)’`

#Dump each database in turn and compress the output
for db in $databases; do
$MYSQLDUMP –opt –hex-blob –force –user=$USER –password=$PASSWORD $db | gzip > $OUTPUTDIR/$db.gz
done

PS: Wordpress seems to replace double dashes (- -) with a single one (-) in the code, so just be aware of that.

I also strongly advise you to use the –hex-blob option for mysqldump if you have any blobs (binary files like executables, images…) in your database, otherwise you may end up with an un-restorable database, even if the backup process went well.

{ 0 comments }

A very Krunk Christmas Photo Shoot!

December 19, 2009

I have been collecting a few new sets of figures this year including a some cthulhu’s. And i decided it might be fun to do a photo shoot using some of the christmas release dunny’s from kidrobot and some of the cthulhu’s I have gotten. Here are some of the results. Enjoy!
Our Story begins on [...]

Read the full article →

Kindle Review

December 10, 2009

This year for my birthday my wife got me an Amazon Kindle 2. The kindle itself is an interesting device – it comes in well produced packaging, which looks easily as attractive as any Apple product I’ve laid hands on lately. My only complaint is the device is not really an “open” device, but I [...]

Read the full article →

My latest dunny loot!

December 4, 2009

Several weeks ago I was lucky enough to be in Miami when they released the 3-in Krunk-a-Claus Dunny. The next week I noticed that they had a second christmas dunny out and it was a 3-in Naughty Reindeer Dunny. So I went ahead and ordered it and it arrived this week while I was in [...]

Read the full article →

A Week in Photos – At Brussels Bonsai 2009

December 3, 2009

These Pictures were Uploaded earlier this year after the anual Brussels Bonsai Rendezvous event. This is really an old post but I want to populate some interesting posts. Rendezvous is an annual convention held Memorial Day weekend at Brussels Bonsai [...]

Read the full article →

Winterizing Bonsai

December 2, 2009

Its starting to get a little cold here in Birmingham so I have started to look at winterizing my bonsai. So fortuitously I am writing an article on it! If you live in a tropical zone, protecting your bonsai trees when the temperature begins to dip near 40 F degrees can be as [...]

Read the full article →

Bonsai Hacker Reset

December 2, 2009

Bonsai Hacker started a little over a year ago as a place for me to discuss and show people a little bit of what I was doing and stuff about my hobbies. When I started up I tried to use wordpress my to create a separate blog for each of my streams. I was then [...]

Read the full article →

Miami Photo Walk – Coconut Grove/Southbeach

December 2, 2009

I have been wanting to start doing photo articles about events and cities I have gone to for a while now. This was encouraged by reading www.dannychoo.com who does some really good photo articles on japan and the cultural themes of the otaku culture there. I do not want to go quite that in-depth here. [...]

Read the full article →

Hello world!

December 2, 2009

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Read the full article →