Category: scripts

Who do these replica folders belong to?

    Cleaning up some LUNs so I can resize them and after rebalancing all the pools the LUN I was going to remove still had some folders on it.  Most of the folders only contained a .hlog file, but a few replica folders still existed and those are a re… more »

MySQL Backup script

Doing this on FreeBSD so you might need to modify the bash location for other OS choices #!/usr/local/bin/bash backupdir=/home/backup/ backupfile=`date +backup-%d-%m-%y_%H.sql` tarfile=mysqlbackup.tar cd $backupdir mysqldump --opt -A -h localhost --pas… more »

VMware PowerCLI Scripts: Delete all snapshots, Create new snapshots

I've started the process of automatically installing my Windows Server updates. Since it is going to be automatic I wanted a way to delete and create new snapshots before patch Tuesdays so I could recover easily if something goes wrong.These scripts… more »
1 2 3 »