Help Setting up ghettoVCBg2 in VMWare

Hi all

I am trying to set up this backup script in VMWare, following the instructions here:

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

I am up to the part titled Configurations - unclear what I need to do/how to do it next?

I have 2 ESXi Servers, with 2VM's each, which I want to backup to an NFS store. NFS store is not here yet but I can test using temp datastore.

Not linux proficient at all, maybe I'm missing something easy?
LVL 1
hongeditAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
if you have a licensed version of ESX/ESXi you need to change the variables in nthe script called ghettoVCBg2.pl.

you can either do this before transferring to the vMA applicance or on the appliance.

this is the section you need to change and save

 
#############################
###  USER CONFIGURATIONS  ###
#############################

#################
# EMAIL CONF
#################

my $SEND_MAIL = "no";
my $EMAIL_HOST = "emailserver";
my $EMAIL_DOMAIN = "localhost.localdomain";
my $EMAIL_TO = 'William Lam <william@primp-industries.com.com>';
my $EMAIL_FROM = 'ghettoVCBg2 <ghettoVCBg2@primp-industries.com.com>';

###############################################################
# NAME OF THE BACKUP DATASTORE
###############################################################

my $VM_BACKUP_DATASTORE = "esx4-1-local-storage-1";

###############################################################
# BACKUP DIRECTORY NAME ON DATASTORE
###############################################################

my $VM_BACKUP_DIRECTORY = "WILLIAM_BACKUPS"; 

####################################################
# Number of backups for a given VM before deleting
####################################################

my $VM_BACKUP_ROTATION_COUNT = "3";

###################################################

Open in new window

0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Before we continue, do you have a licensed (paid for license) of VMware ESXi/ESX?
0
 
hongeditAuthor Commented:
Yep - Essential (not plus)
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay, so you need to edit the file as in my last post.
0
 
hongeditAuthor Commented:
I have already transferred to the vMA, so how do I edit that file?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
use nano or vi

0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you type nano filename

or

vi filename
0
 
hongeditAuthor Commented:
Thanks!

Ok, so:

o If I have a Datastore called "Test", I can just put:

my $VM_BACKUP_DATASTORE = "Test";

o What would I put for a NFS, say 192.168.23.100 with a NFS share called "Backups"
o What is the difference between zerothick, eagerzeroedthick, thin and 2gbsparse?
o Difference between buslogic/lsilogic?
o Should I tick Snapshot Memory and/or Quiesce?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
1. You will have already mounted your NFS server from ESXi/ESX, and give it a friendly datastore name, so you would use the friendly datastore name for the NFS server.

2. these are output formats used by the backup script

ZEROEDTHICK - vmdk is same size as backup, but unused space is zeroed.
EAGERZEROEDTHICK - vmdk is same size as backup, but unused space is zeroed. (more)
2GB SPARSE - splits the backup into 2gb chuncks
THIN format - only the data in use is backedup (similar to thin provision disks)

3. buslogic and lsilogic are the storage controllers used in the virtual machine.

4. if you are using VMware Tools, I would select Quiesce
0
 
hongeditAuthor Commented:
Thank you.

1. Ah I see. I mound the NFS as a Datastore and it is treated as such from then on. Gotcha.
2. Great explanation. I guess THIN is the best here, less space used!
3. I'll stick with default.
4. See below

How do i install VMWare tools onto the vMA? I tried to do it like a Windows box from the console but nothing happened :D

Also, the document does not specify how to do a Restore?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
No need to install Vmware Tools on vMA

ghettovcb and later are backup scripts that backup only to a datastore.

As you are backing up to an NFS mounted datastore which is available to ESX, you can either in the event of restore, add those VMs to the inventory, by right clicking VMX, and selecting add to inventory, and run from NFS.

or, using the datastore browser, copy and paste back to the ESX server local drives, and then VMs to the inventory, by right clicking VMX, and selecting add to inventory, and run from NFS.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.