Do you have the licensed version of ESX?
I use the following script to create guest image backups that is stored on a NFS share (hosted by Openfiler). There are numerous examples of backup scripts available. I have "future plans" to use VDR when it is stable; until then, we will do agent based backups and image-based backups for DR.
date +%a" "%x" "%X
for VMXFILE in $(/usr/bin/vmware-cmd -l)
do
FLDRNAME=`dirname $VMXFILE`;
VMXCFG=`basename $VMXFILE`;
GUESTNAME=`basename $VMXFILE .vmx`
BKUPDIR=/vmfs/volumes/ESXDataRecStore/$GUESTNAME
http:// -d $BKUPDIR.1 || ( mkdir $BKUPDIR.1 && touch $BKUPDIR.1/emptydir.txt; )
http:// -d $BKUPDIR.2 || ( mkdir $BKUPDIR.2 && touch $BKUPDIR.2/emptydir.txt; )
rm -f $BKUPDIR.2/*
mv $BKUPDIR.1/* $BKUPDIR.2/
cp $VMXFILE $BKUPDIR.1
/usr/bin/vmware-cmd $VMXFILE createsnapshot BackupSnap BackupSnap 1 0;
for VMDKFILE in $(find $FLDRNAME -type f -name "$GUESTNAME.vmdk")
do
VMDKFILENAME=`basename $VMDKFILE`
/usr/sbin/vmkfstools -i $VMDKFILE -d thin $BKUPDIR.1/$VMDKFILENAME
done
for VMDKFILE in $(find $FLDRNAME -type f -name "$GUESTNAME"_"?.vmdk")
do
VMDKFILENAME=`basename $VMDKFILE`
/usr/sbin/vmkfstools -i $VMDKFILE -d thin $BKUPDIR.1/$VMDKFILENAME
done
/usr/bin/vmware-cmd $VMXFILE removesnapshots
done
date +%a" "%x" "%X
This email including any attachments is confidential, and may be privileged by law.
Statements and opinions expressed in this message may not represent those of
Lexington Memorial Hospital. If you are not the intended recipient, please notify the
sender, and remove this message from your inbox.