How to setup a daily backup virtual machine running on VMWare

backupvmware-server

My company has a VMWare server. We run 6-8 virtual machine. I would like to perform daily backup them in a storage server.

How to do this with VMWare? Is there some "component" I don't know ? Or simply, I need to 'physical' copy vmdk files with a simple Bash script ?

Best Answer

It's not a simple bash script by any stretch of the imagination but I've used this excellent script written by Iamw before and it's worked like a charm. We had a 2GB Netgear NAS attached to the network and added as an NFS Datastore:

http://communities.vmware.com/docs/DOC-8760

This script performs backups of virtual machines residing on ESX(i) 3.5/4.x+/5.x servers using methodology similar to VMware's VCB tool. The script takes snapshots of live running virtual machines, backs up the master VMDK(s) and then upon completion, deletes the snapshot until the next backup. The only caveat is that it utilizes resources available to the Service Console of the ESX server or Busybox Console (Tech Support Mode) of the ESXi server running the backups as opposed to following the traditional method of offloading virtual machine backups through a VCB proxy.