Monday, June 4, 2007

VMWare ESX backups using vmbk.pl

Download vmbk.pl from here. http://www.vmts.net/vmbk.htm

Using scp copy it to your esx box.
#scp vmbk.tar.gz root@esx3:vmbk.tar.gz

ssh (or putty) into your esx machine. Move the file to a temp directory or wherever you like.
#cp vmbk.tak.gz /tmp

Move to the directory where you placed the file. Extract the archive.
#tar zxf vmbk.tar.gz

Change to the directory where the archive was unpacked
#cd vmbk

Run the installer
#./install.pl

Create a mount point
#mkdir /mnt/backup

Mount a windows share to your newly created mount point.
#mount -t smbfs //10.3.2.5/reporting$ /mnt/backup -o username="********"/"domain",password="********"

Create a backup of the desired VM.
#vmbk.pl -c -d /mnt/backup -x /home/vmware/intranet/intranet.vmx

Or to backup all VMs with auto specified in the vmx config file
#vmbk.pl -c -d -a /mnt/backup

No comments: