Dec
0

Creating snapshots of attached AWS EBS volumes

Here is a very simple script I wrote to create snapshots of all attached EBS volumes for a specific instance. I call this script via Cron on a regular basis. The script is available for download at http://pastie.org/3027416 You will need to have the Amazon EC2 API Tools installed on the same machine this script is executed from.

 

#!/bin/bash
#
# Created by Jason Buscema <jbuscema@lambesis.com>
#
# Create snapshots of the attached EBS volumes for a specific instance. Script
# will look for ALL volumes assigned to an instance and create snapshots of
# them.
# You will need to have the Amazon EC2 command line tools installed in
# order for this script to work. Get them from http://aws.amazon.com/developertools/351

# Usage
# Call this script with an instance name and a readable name. IE:
# ./backup-s3.sh [instance] [readable name]
# ./backup-s3.sh i-123456 MyServer

# Define our exports we'll need for the tools to work. There are better
# ways of doing this.
export EC2_HOME=/root/.ec2
export PATH=$PATH:$EC2_HOME/bin
export EC2_PRIVATE_KEY=$EC2_HOME/pk-myprivatekeynamegoeshere.pem
export EC2_CERT=$EC2_HOME/cert-mycertnamegoeshere.pem
export PATH=~/.ec2/bin:$PATH
export JAVA_HOME=/usr/java/default
export PATH=$PATH:/usr/java/default

# Which instance are working with? Read from stdin
INSTANCE="$1"
DESCR="$2"

if [  $1 -a $2 ]
	then

	# Get attached volumes for specific instance
	TMPFILE="/tmp/`date +%N`"
	ec2-describe-volumes | grep $INSTANCE | awk '{print $2}' > $TMPFILE

	while read line
	do
		echo -e "Creating snapshot for - $DESCR for $INSTANCE from $line (via `hostname`)"
	    ec2-create-snapshot $line -d "$DESCR snap for $INSTANCE from $line (via `hostname`)"
	done < $TMPFILE

	# Remove our tmpfile
	rm -rf $TMPFILE

	exit 1

else
	echo "> ERROR - Need to pass in the instance ID and a name separated by a space. IE: 'backup-s3.sh i-1234567 Name'"
	exit 1
fi

 

Jul
0

Looking for Bad Guys at Fort Casey

We spent the day at Fort Casey on Whidbey Island, again with grandma and grandpa. Isaac and Levi absolutely loved the place. They each had flashlights and would go around looking for all the bad guys. The fort is really something to see and much of it is still open to the public. I remember playing capture the flag here once back in college. Insane.

The history behind the fort is very interesting even if a “real” shot was never fired on an enemy. There is obviously so much more underground that isn’t available to the public to see. I would love to see how the fort was back in the early 1900s.

Posted via email from Jason Buscema

Jul
0

Crabbing with Grandpa

Today we went to Grandpa and Gigi’s house near Kayak Point to go crabbing. I’ve never been crabbing before and neither have the boys. Grandpa has a unique method that proved to be very successful. I was in the canoe with the boys just offshore while Grandpa was wading in the water. We would spot the crab from the canoe then push them to more shallow water using the oars. Most often Grandpa and I would double team with our oars to bring a crab up into the canoe. After the first crab, I was hooked. We ended up catching around 25 sized crab and threw back 13 females. Later in the evening we feasted on the 12 crab we caught.

The weather cooperated as well. I thought I was back in Souther California… minus the Dungeness crab. Another wonderful day on our Seattle vacation!

 

Img_0243 Img_0230 Img_0241 Img_0234 Img_0229 Img_0239

Img_0251

 

Jul
0

Summertime in Seattle (part 2)

I’ll keep this one short as we’re trying to get out the door for either the Woodland Park Zoo or the Seattle Aquarium. The aquarium is our backup plan should it rain… which its doing right now. Now I’m seeing why everything is just so green up here, although yesterday we definitely had to sun-block up the kids.

The last couple days we’ve seen a ton of family, spent time at the beach and some parks, and continued our eating spree. The boys just loved the beach at Mukilteo as its so different than the beaches in San Diego. They really enjoyed all the rocks, shells and crab body parts, looking at the jellyfish in the water and climbing on the driftwood. It really is a great place to play. Emily kept having to tell the boys that we can’t bring home the crab body parts with us as  cool as they were. Who wouldn’t want to bring home crab legs, right?

Today we’re upgrading Emily’s parent’s garbage DSL from Frontier to a respectable connection from Comcast Cable. Everyone here is excited to have working Internet again. I still can’t believe the terrible connection they’ve had to live with for some time. $25/mo for 768k/128k connection, max. Yuk!!

Off for another day of adventure.

Seattle_post2

Posted via email from Jason Buscema

Jul
0

I’m 99% slower than you

I can’t believe the family I’m staying with is paying $25/mo for this crap service from Frontier. Look at these tests below… all done within 5 minutes of each other.
I called Frontier and they told me the area we are located in is being upgraded so we should expect intermittent connectivity for 30-45 days. Maybe they should expect intermittent payment as well. Even once the lines are updated, the max profile available is 3Mbps/768k for $30. Gimme a break!!!
I want to click on the rating option but I there isn’t an option for ZERO stars.

 

BTW – They are moving over to Comcast 20/2 tomorrow… for the same price. Frontier FiOS 25/25 for $39.99/mo. Wish I could get this service at home in San Diego.

Posted via email from Jason Buscema

Jul
0

Summertime in Seattle (part 1)

We’re up in Seattle for a couple weeks visiting family and friends. I still can’t get over how late the sunset is up here. I took the sunset photo from my father-in-law’s place near Stanwood around 9:15pm. Just amazing (both the lateness and the view from his place). Getting the kids down to bed is not as easy here as it is in San Diego. Their bedtime in San Diego is around 7:30 and it’s pretty dark by 8pm. So far, the kids have been going to bed after 9pm and it’s still light out until 10. They are a bit confused!

At Grandmas and Grandpas, we’ve been eating our weight in raspberries. Grandma has a fantastic garden full of all sorts of treats… peas, berries, rhubarb (crisps!).

On Monday the Samms came up to visit. Isaac had been asking to see them since we stayed at their place last summer. They were awesome with all of the boys and wore them out! They even did a fencing demonstration for us.

Today we’re off to Mukilteo for a bit.

Love vacation!

Photos1

Posted via email from Jason Buscema

Jun
0

How to use AT&T to hijack someone’s cell number

 

I should find this shockingly disturbing however for some reason I’m not the least bit surprised. That “some reason” is because the people providing the means to jack someone’s cell number is none other than our friends at AT&T.

Think of someone you really hate … now hope they use AT&T so you can steal their mobile number, then lock their account. From this point on, we’ll refer to this person as “the sucker”.

All you need is a business account with AT&T. Sure, to get a business account you will need to give them your federal tax id number and undergo a credit check but that’s not really a big deal. Once you have an AT&T business account, you can take over the sucker’s personal AT&T number without their prior permission or knowledge. The only two pieces of information you will need to know is their mobile number and their name. Real tough to get I know.

How to do the deed:

  1. Call AT&T’s business line (Assuming you can stomach calling AT&T in the first place)
  2. Tell them you want to transfer a personal account/number to your business account
  3. Give them the super secret information (the sucker’s name and mobile number)
  4. Answer whatever questions they have about rate plans, etc.
  5. That’s it! You’re done.

 

Now within a short period of time, the sucker’s mobile number will be transferred to your business account. AT&T will not make any attempt to verify this request with the sucker. Once the number is on your business account, you have full control over the sucker.

Sounds impossible, right? I’ve done this now with three different employees of ours over the past week. In my case, I told two of them what I was doing but I didn’t have to verify anything with AT&T. The third employee I simply forgot to tell him I was going to transfer his mobile number to our corporate account. When the transfer was done and I informed him, he was shocked and upset that it went through without his permission. I was as well. So I called AT&T business and they told me that business accounts do NOT require verification from the personal user to transfer the account.

INSANE!

Oct
0

Offsite backups with Amazon S3 + Arq

One of my bigger technical initiatives this year at work has been to provide and maintain an offsite backup of a large subset of the company’s data. Naturally, this needs to be done within a specific budget and it needs to work. While I’m still in the middle of testing, I thought I would share some of my experience and insights. Please keep in mind that the offsite backup solution for us is NOT our first means of backup. We are using Atempo Time Navigator internally and backing up our data to disk. Our archives are also being pushed to LTO tape. Offsite backup for us is a second copy of the important data outside of our office.

Reasons for us to have an offsite backup:

  • For diaster recovery (DR) purposes. Theft, fire, flood, earthquake, nukes and gremlins.
  • Automation – Reduce the reliance on staff for swapping backup tapes in the libraries and ultimately eliminate any human input and error.
  • Equipment failure – A backup to the backups should the backups fail!

Problems with offsite backups:

  • Large data set – Big files means more time/bandwidth to transfer offsite. We’re on a DS3 so no issues with bandwidth… yet.
  • Security – Where are my files stored and who can get access to them?
  • Restore time – In the event of a disaster, how long would it take me to get my data?

http://sreitshamer.github.com/arq_restore/Right now I’m testing a very simple solution using Haystack Software’s Arq for Mac and Amazon S3. A license for Arq is $29. Arq is running on of my Mac OS X servers which happens to have a few RAID units connected to it. I’ve simply told Arq to backup a few specific share points on an hourly basis. I’m able to setup excludes which is important.

Arq allows me to set a monthly budget for Amazon S3 and it will automatically purge old version when that budget is reached. Currently, I am using Amazon S3 Reduced Redundancy Storage which costs ¢10/GB. My current backup set is around 4TBs which costs approximately $410/mo.

arq_restore is a command-line utility for restoring from backups created by Arq. Which this command, I can restore all my data from Amazon S3 without the need for the Arq application. This ensures that my data is accessible should Arq ever become unsupported and vanish from this planet.

I’m also using the Amazon EC2 API tools, s3sync and Amazon S3 for automated offsite storage of data from our various Linux servers. For example, we have a very important internal MySQL database that needs to be backed up a few times per day and archived. The database is dumped and backed up via cron every 4 hours and a copy is sent over SSL to a secure Amazon S3 bucket where it sits indefinitely. Very simple and hands free.

So far what I really like about using Arq and Amazon S3 is the simplicity, cost and ease of use.

More to come…

Oct
0

Sick catch!

I’m always trying to capture peak action when shooting for Sideline Studios, but as any pro photographer will tell you, it’s not easy! For some reason the athletes don’t consider the best angle and lighting for me to get the shot… I don’t know why. I’ve tried asking the refs to stop the game so I can re-shoot the shot I just missed but that never seems to fly.

At the last Santa Fe Christian versus La Jolla High School football game, I finally captured a pretty nice sequence of shots of David Knoth catching the ball and running into the end-zone. To capture this sequence, I dropped the 400 2.8 lens and used the 70-200 lens on a Canon 1D Mark III body. Perhaps it was because I had my little helper with me for this game. Enjoy.

Sep
0

Facebook Fail – Unlike

Facebook Fail – Unlike

We’ve been having issues all day with Facebook, specifically with the “Like” button. At first we just thought something was wrong with our code when a page was taking nearly 2 minutes to load. Not the case. Unlike Facebook Like.