good evening community,
my first time to start a new thread in this forum.
I use ghettovcb to backup virtual machines on my esxi vmware server. As i red, i know, that the actual version of ghettovcb is not 100% compatible with the vmware esxi 5.1 version! I have executed all changes on the esxi system to run the script under the version 5.1!
At the esxi server, there are 5 virtual machines and one machine which is only istalled for testing some software etc pp. I want to backup only this vmware. As i red in the help section of the script, i created a file, which is contains the names of the vm´s which schould be backup!
Of course, i have adapt the .sh file to my server settings!
I will post here the configuration:
# Author: William Lam
# Created Date: 11/17/2008
# http://www.virtuallyghetto.com/
# http://communities.vmware.com/docs/DOC-8760
##################################################################
# directory that all VM backups should go (e.g. /vmfs/volumes/SAN_LUN1/mybackupdir)
VM_BACKUP_VOLUME=/vmfs/volumes/ddd-local-storage-1/backups
# Format output of VMDK backup
# zeroedthick
# 2gbsparse
# thin
# eagerzeroedthick
DISK_BACKUP_FORMAT=thin
# Number of backups for a given VM before deleting
VM_BACKUP_ROTATION_COUNT=3
# Shutdown guestOS prior to running backups and power them back on afterwards
# This feature assumes VMware Tools are installed, else they will not power down and loop forever
# 1=on, 0 =off
POWER_VM_DOWN_BEFORE_BACKUP=0
# enable shutdown code 1=on, 0 = off
ENABLE_HARD_POWER_OFF=0
# if the above flag "ENABLE_HARD_POWER_OFF "is set to 1, then will look at this flag which is the # of iterations
# the script will wait before executing a hard power off, this will be a multiple of 60seconds
# (e.g) = 3, which means this will wait up to 180seconds (3min) before it just powers off the VM
ITER_TO_WAIT_SHUTDOWN=3
# Number of iterations the script will wait before giving up on powering down the VM and ignoring it for backup
# this will be a multiple of 60 (e.g) = 5, which means this will wait up to 300secs (5min) before it gives up
POWER_DOWN_TIMEOUT=5
# enable compression with gzip+tar 1=on, 0=off
ENABLE_COMPRESSION=0
############################
####### NEW PARAMS #########
############################
# Include VMs memory when taking snapshot
VM_SNAPSHOT_MEMORY=0
# Quiesce VM when taking snapshot (requires VMware Tools to be installed)
VM_SNAPSHOT_QUIESCE=0
##########################################################
# NON-PERSISTENT NFS-BACKUP ONLY
#
# ENABLE NON PERSISTENT NFS BACKUP 1=on, 0=off
ENABLE_NON_PERSISTENT_NFS=0
# umount NFS datastore after backup is complete 1=yes, 0=no
UNMOUNT_NFS=0
# IP Address of NFS Server
NFS_SERVER=172.51.0.192
# Path of exported folder residing on NFS Server (e.g. /some/mount/point )
NFS_MOUNT=/upload
# Non-persistent NFS datastore display name of choice
NFS_LOCAL_NAME=backup
# Name of backup directory for VMs residing on the NFS volume
NFS_VM_BACKUP_DIR=mybackups
############################
######### EMAIL ############
############################
# Email debug 1=yes, 0=no
EMAIL_DEBUG=0
# Email log 1=yes, 0=no
EMAIL_LOG=0
# Email Delay Interval from NC (netcat) - default 1
EMAIL_DELAY_INTERVAL=1
# Email SMTP server
EMAIL_SERVER=mail.asdasdasd.ed
# Email SMTP server port
EMAIL_SERVER_PORT=25
# Email FROM
EMAIL_FROM=root@ghettoVCB
# Email RCPT
EMAIL_TO=asdasd@asdasd.de
I start the backup with the following command: ./ghettoVCB.sh -f vms_to_backup -g ghettoVCB.conf
But there are an error while the server is backuping the vm. here you can read that:
2013-01-08 19:11:22 -- info: ============================== ghettoVCB LOG START ==============================
2013-01-08 19:11:22 -- info: CONFIG - USING GLOBAL GHETTOVCB CONFIGURATION FILE = ghettoVCB.conf
2013-01-08 19:11:22 -- info: CONFIG - VERSION = 2011_11_19_1
2013-01-08 19:11:22 -- info: CONFIG - GHETTOVCB_PID = 1133126
2013-01-08 19:11:22 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/d11-local-storage-1/backups
2013-01-08 19:11:22 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2013-01-08 19:11:22 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2013-01-08_19-11-21
2013-01-08 19:11:22 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2013-01-08 19:11:22 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2013-01-08 19:11:22 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2013-01-08 19:11:22 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2013-01-08 19:11:22 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2013-01-08 19:11:22 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2013-01-08 19:11:22 -- info: CONFIG - LOG_LEVEL = info
2013-01-08 19:11:22 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2013-01-08_19-11-21.log
2013-01-08 19:11:22 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2013-01-08 19:11:22 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2013-01-08 19:11:22 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2013-01-08 19:11:22 -- info: CONFIG - EMAIL_LOG = 0
2013-01-08 19:11:22 -- info:
2013-01-08 19:11:28 -- info: Initiate backup for cnwund_testos_backup
2013-01-08 19:11:28 -- info: Creating Snapshot "ghettoVCB-snapshot-2013-01-08" for cnwund_testos_backup
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/d158-local-storage-1/cnwund_testos_backup/cnwund_testos_backup.vmdk'...
Clone: 100% done.
2013-01-08 19:21:10 -- info: Removing snapshot from cnwund_testos_backup ...
2013-01-08 19:21:10 -- info: Compressing VM backup "/vmfs/volumes/d158-local-storage-1/backups/cnwund_testos_backup /cnwund_testos_backup-2013-01-08_19-11-21.gz"...
./ghettoVCB.sh: line 1236: busybox: not found
2013-01-08 19:21:10 -- info: Error in compressing cnwund_testos_backup!
2013-01-08 19:21:12 -- info: Backup Duration: 9.73 Minutes
2013-01-08 19:21:12 -- info: Successfully completed backup for cnwund_testos_backup!
./ghettoVCB.sh: line 1236: can't create /vmfs/volumes/d158-local-storage-1/backups/cnwund_testos_backup/cnwund_test os_backup-2013-01-08_19-11-21/STATUS.ok: nonexistent directory
2013-01-08 19:21:14 -- info: ###### Final status: All VMs backed up OK! ######
2013-01-08 19:21:14 -- info: ============================== ghettoVCB LOG END ================================
There are some realy strange things, i listet below!
---> ./ghettoVCB.sh: line 1236: busybox: not found
---> 2013-01-08 19:21:10 -- info: Error in compressing cnwund_testos_backup!
--->./ghettoVCB.sh: line 1236: can't create /vmfs/volumes/d158-local-storage-1/backups/cnwund_testos_backup/cnwund_test os_backup-2013-01-08_19-11-21/STATUS.ok: nonexistent directory
i have no idea to fix these problems, could someone help me please.
Best regards,
christian