Skip to content

Instantly share code, notes, and snippets.

View sjaganat's full-sized avatar

Selvakumar Jaganathan sjaganat

View GitHub Profile
@sjaganat
sjaganat / vm_clone.sh
Created January 6, 2011 17:08
Cloning VM using Shell Script
#!/bin/bash
if [ $# -eq 0 ] ; then
echo clone source-dir target-dir num hour/min/sec
else
echo Cloning "$1" to "$2"
vmx=`find "$1" -name '*vmx'`
if [ "$vmx" == "" ] ; then
echo Could not find VMX
@sjaganat
sjaganat / vm_backup.pl
Created January 6, 2011 17:03
VMware VM Backup Perl Scripts
#!/usr/bin/perl -w
use strict;
use Carp;
use Fcntl qw(:mode);
use POSIX qw(:sys_wait_h);
use File::Spec;
use IO::Dir;
use VMware::VmPerl;
use VMware::VmPerl::ConnectParams;