VMBK v.3.0 Rev 11

Home
VMBK Manual

 

Backup script for VMWare ESX 3.x:

DOWNLOAD : ESX Backup script: vmbk.pl Version 3.0.0 rev.11
#rev 11
#change polling function during fork
#TSM improvement (Thx M. Mastri)
#change nfs parameter from soft to intr (thx Liuk)
#fix a problem with soft/hard powerop operation (thx M.Pintore)
#fix a problem with smbmountpoint parser(thx Liuk)
# Adapted Modify by FJaenecke on VMBK rev 8
# Removed non exist dirs in export tar.gz file (Modified by FJaenecke)
#Only for design, print message for "Remove Snapshots" one tab removed (Modified by FJaenecke)
# Backup no independent disks (Modified by FJaenecke)
# Remove Snapshot before copy of config files like .vmx (Modified by FJaenecke)
# After my before removing snapshot, don't remove a second time (Modified by FJaenecke)
# Use Original VMDK-filename instead of the scsi-notation (Modified by FJaenecke)
# VersionNr-Display (Modified by FJaenecke)
#: Skipping Disks like RAW LUNS in virtual mode (Modified by FJaenecke)
# Use Original VMDK-filename instead of the scsi-notation only if .vmx will be copied (Modified by FJaenecke)
# Some Skip-Messages removed (Modified by FJaenecke)
# Mail reporting modified (Modified by FJaenecke)
# Test Mode Copy config always ok (Modified by FJaenecke)
# Mail reporting modified (Modified by FJaenecke)
# display end time and total time (Modified by FJaenecke)
# Check Snapshot before remove (Modified by FJaenecke)
# new snapshot handling (only remove if it was create from vmbk) (Modified by FJaenecke)
# Statistics completely reworked and add some notes (Modified by FJaenecke)
# VDF Info as file (Modified by FJaenecke)
# esxcfg-info as file (Modified by FJaenecke)
# Own bug fixed : Use Original VMDK-filename instead of the scsi-notation only if .vmx will be copied (Modified by FJaenecke)# Statistics modified (Modified by FJaenecke)
# ourdomain-Handling new (Modified by FJaenecke)
# copy logfile (Modified by FJaenecke)
#: Own bug fixed 2: Use Original VMDK-filename instead of the scsi-notation only if .vmx will be copied (Modified by FJaenecke)
Download Now
DOWNLOAD : ESX Backup script: vmbk.pl Version 3.0.0 rev.8
#rev 8
#add restore file use vcbRestore to restore the vm
#remove snap dump memory (default)
#add -r add snap dump memory
#change exported name files scsix-y-0-name.vmdk
#minor fix
Download Now
DOWNLOAD : ESX Backup script: vmbk.pl Version 3.0.0 rev.6
#now works ftp - tar - gzip and vmkfstools
# now the export is forked (workaround for the webservice timeout)
# fix a problem with disk list order (thx to Massimo Pintore)
Download Now
DOWNLOAD : ESX Backup script: vmbk.pl Version 3.0.0 rev.3
add Netbackup,Legato,TSM support + ftp backup
Download Now
DOWNLOAD: ESX Backup script: vmbk.pl Version 3.0.0 rev.1 Download Now

INSTALLATION NOTE
Find the installer file vmbk3.tar.gz in the directory where you downloaded it and copy it to the /tmp directory or another directory of your choice.
Become root.
su -
Unpack the tar archive.
tar zxf vmbk.tar.gz
Change to the directory where the archive was unpacked.
cd vmbk
Run the installer.
./install.sh

UPGRADE
Follow the installation note new vmbk.pl version overwrite old one (no configuration file will be overwrite)


Note

Remember the firewall ports have to be open also for send e-mail

You need to run the installer only to permit the copy of the MIME::Lite.pm  standard Perl module (you can find it on CPAN
If you don't want use install script , you have to do:
copy Lite.pm  to /usr/lib/perl5/5.6.1/MIME/
if destination directory don't exist create it.
DiskFree.pm is not more used 

You find other 2 file vmbk-default.conf  and vmbk-cron

  • vmbk-default.conf   is a simple configuration file for vmbk.pl (use -C option)
  • vmbk-cron is a cron file that  allow a  scheduled backup , simply change scheduling time (for info how to use crontab) and copy to /etc/crond.

    Cron configuration
    vi /usr/local/bin/vmbk-cron  #change schedule time
    cp /usr/local/bin/vmbk-cron /etc/cron.d/vmbk-cron
    chmod 755 /etc/cron.d/vmbk-cron
    touch /etc/cron.d/vmbk-cron
    

    Note  before to use inside a cron job remember to terminate the vmbk.pl line command with "> /dev/null 2>&1"
     

    vmbk-cron content


1 2 * * * root /usr/local/bin/vmbk.pl -C /usr/local/etc/vmbk-default.conf > /dev/null 2>&1

 

Home | VMTSPatchManager | VMBK v.3.0 Rev 11 | VMBK v2.22.2 Rev.6 | VDF+ 2.0 | VMCL 2 RC1 | vmSSHjwc v1.0.1 | Article | Download Area | Useful Documents | Bookmarks | Legal Info | About Me | Feedback | Forum