- Log in to a base server using root
- Change directory to “/vmfs/volumes/VSBASE-SAN-BK-8/vmbackup” (or “/vmfs/volumes/MSA60-VSBASE-2-BK/vmbackup”)
- Note: Vcentre doesn’t allow datastore to have the same name. So path will be a little different depending on the host.
- Two files are located in this directory:
- ghettoVCB.sh and vmlist
- The original ghettoVCB.sh also resides here ghettoVCB-restore.sh
- (optional) Open script using command “vi ghettoVCB.sh”, and double check the backup destination. It should have already defined.
- Open another file “vi vmlist”
- Input all VMs on this ESX host that need to backup into “vmlist”, and save the file. If you want to skip a server, just put a # before the server name.
- Run script “./ghettoVCB.sh -f vmlist”
- Backup will start and import all local VMs to backup location. Note: If a server has snapshot, the backup will skip this server and do the next.