Idle Thoughts: Things to do with your VDC

By now, you might have a virtual datacenter, and whether by design or happenstance, you might have some extra capacity in reserve. Rather than letting it sit idle, why not utilize it for some small, temporary projects? Since creating and starting a virtual machine takes minutes instead of hours, and the resources invested can be recovered just as quickly, its relatively easy to explore options which you might not have had time for before. Maybe you can solve a problem you’ve been struggling with, or discover new capabilities for your business. Here’s a few ideas.

More >

Monitoring, a journey

Or “How I Stopped Worrying and Learned to Love SaaS”

I touched on monitoring in an earlier post but I thought that I would expand on my thoughts.

Let me just get this out there: LogicMonitor (company site) is awesome. It’s not perfect (what is?), but it’s amazing, simple, straightforward, and it works. It combines effective monitoring with graphing (metrics); it’s easy to understand and customize and it works.

Repeat: It works.
More >

Found Script: Backing up data with BASH and XZ

Quick post this week as I’m a little distracted by the impending weekend.

Here’s a script that I use to backup my Maildir. Normally I write my own, but I was feeling lazy. So in the interest of not re-inventing the wheel, I decided to copy one. Unfortunately, I forgot where I got it. Normally I’m good about attributing things that I copy/utilize. So, if this is your script, thank you! If you want attribution, please let me know.

This is just a bash script. It creates a xz’d tar file in my /home/nick/Archives directory/

First, check for input.’

#----script to backup files

if [ $# -lt 1 ]
then
   echo Usage: backup.sh Directory
   exit
fi

Next, create the date stamp.

JJJ=`date '+%d%m%y'`

This is the main loop. It processes for each in the attribute list ($#)

while [ $# -gt 0 ]
do

Print the directory we’re currently working on, then set the DIR variable to that directory’s path.

   echo $1
   DIR=$1

Truncate the directory path of the DIR variable

   MODDIR=`basename $DIR`

Verify the directory exists before doing anything

   #----check file exists
   if [ ! -d $DIR ]
   then
      echo Error: File \'$MODDIR\' not found!!

Check to see if the destination folder exists. This is where I hard coded it to be /home/user/Archives. If it doesn’t, create the backup locally.

   else
      if [ -d ~/Archives ]
      then
        DESTTAR=~/Archives/$MODDIR.$JJJ.tar.xz
      else
        DESTTAR=$MODDIR.$JJJ.tar.xz
      fi

Check to see of the destination file exists. If it does, complain and exit.

    if [ -d $DESTTAR ]
        then
                echo Error: File \'$DESTTAR\' already exists!!
                exit 0

Tar the archive using the xz compression method (the “J” attribute in the tar command)

    fi
      tar -cJf $DESTTAR $DIR
   fi
   shift
done

And we’re done! At some point I’ll add an auto-pruning portion to the script.

I just stick the script in my personal bin folder, make it executable, edit my crontab and put an entry in it pointing to my Maildir, and I get nightlly backups of all my mail.

Building things: cubicle analogy time

This week, I’ve been building (actually, rebuilding) cubicle desks in our new office space and comparisons were naturally drawn to building virtual machines a few weeks ago.

More >

NAT: the savior and destroyer of the Internet

Having helped a customer setup VPNs for private connectivity to several large (ie. Fortune 100) companies lately, I’ve really dreaded seeing how NAT has been abused to the extent that it is making private islands on the Internet and breaking everything from routing to DNS to any future protocol enhancements. More >