Tag Archives: System Admin

Script to Backup MySQL Database

Being that that this blog is “Proudly Powered by WordPress,” which uses a MySQL database, I wanted to find a way to schedule regular backups of MySQL databases. I am not that well versed with MySQL – all of the DB’s which I work with professionally are either SQL Server or Oracle – so I was looking to MySQL WorkBench to do the scheduling of regular backups, and to my dismay, you can’t schedule backups there.

I am not sure if this is something that Oracle has stripped out, or what, but it’s pretty crazy. So, I created this quick and easy PowerShell script to use the MySQLDump.exe to export the DB to a specified location, and cleanup any backups older than 1 month old.

Use the Task Scheduler to create a task to execute this script daily or weekly, and you’re set with your local backups of your MySQL DB.

Hope someone new to MySQL stumbles across this in less time than I took to realize that this functionality was not in MySQL WorkBench and to write the script. Enjoy!



VMware Flings

I came across these little applications from VMware Labs a few months ago, and have found that there are some really handy tools [freely] available to a sys admin. Some of tools that I have found to be most interesting/useful are:


In these days where automation is king, this application can help you eliminate some of the repetetive and redundant tasks. The application sits between your vSphere client and your vCenter Server, and proxies the commands you issue via the client, and in turn spits out the associated PowerShell code. Jump start your self-service internal cloud infrastructure, even if you’re not a PowerShell guru yet.


ESXPLOT is a gui for interpreting the data gathered by ESXTOP. As everyone knows, the performance graphs in vCenter Server are not nearly as robust as the ESXTOP interface. ESXTOP is a realtime monitoring console, but can be run with a flag to output a the performance data to a CSV file for offline analysis.

ESXPLOT can interpret the CSV file from an ESXTOP session, and display the results in a visual format…very handy. Also, coupling this with the VMware Support tool is a powerful performance analysis/troubleshooting method.

These are just a couple of the tools at VMware Labs that are really pretty innovative, but don’t get much accolades. So, do yourself a favor and head over to http://labs.vmware.com and see what they’ve got cookin’.