December 23, 2015

Backup VMware ESXi using BazaarVCB

This post describes how you can backup your VMware ESXi home installation with free license using BazaarVCB if you do not have a vCenter Server available. Bazaarvcb is the fastest backup solution I have used on the free VMware hypervisor.
Download the latest version from the download page.
The backup script is run by crontab every night and looks like this
#!/bin/bash
bazaarvcbPath="/media/backup/bazaarvcb-0.9.7b-linux-i386/bazaarvcb"
backupsPath="/media/backup"
hostname="192.168.0.222"
username="root"
password="password"
rollOut="30"
vmNames="vm-guest1 vm-guest2 vm-guest3"

for VM in $vmNames; do
        `$bazaarvcbPath backup -H $hostname -u $username -p $password --roll-out $rollOut $VM $backupsPath/$VM`
done
The backups are full so make sure you have enough disk space available.
bazaarvcb options
$ bazaarvcb -h
usage: bazaarvcb [-h]  ...

optional arguments:
  -h, --help   show this help message and exit

valid commands:
    checkhash  check .hsh files integrity in one directory
    listvm     list registered VMs on the ESXi host
    queryvm    display VMs informations
    listbackup
               search for backups in local and remote directories
    querybackup
               display report file of one particular
    backup     backup a VM
    restore    restore a backup
Open TCP port 31031 in your firewall to ensure that you have a high transfer rate, otherwise the backup will be transferred over SSH protocol and will be capped in speed to about 7MB/s (on the free hypervisor).
Bazaarvcb cannot backup a VM with snapshot(s).
Warning!
I have not tested this on a host connected to a vCenter server and can not confirm that it will work or not.

Related Posts:

  • VMWare bài 13 - Cài đăt Starwind làm SAN1. chuẩn bị- Tạo máy ảo Win 2k3 sử dụng 2 HDD (1 ổ cài WIN và 1 ổ làm SAN)- Download Starwind trên trang chủ (bạn cần có mail domain dạng cty, cá nhân để đăng kí, nó không cho phép các dịch vụ mail như gmail, yahoo, hotmail..… Read More
  • VMWare bài 16 - Cài đặt Openfiler iSCSI với ESXi - Trong bộ sản phẩm vSphere thì Storage là 1 thành phần rất quan trọng trong hệ thống ảo hóa. Nó giúp bạn quản lý tập trung, truy xuất dữ liệu và hỗ trợ các tính năng của vSphere như HA, vMotion... - Có rất nhiều phần mề… Read More
  • VMWare bài 14 - Kết nối hệ thống SAN vào vCenter - Như ở bài lab trước chúng ta đã tạo được hệ thống SAN trên 2k3 và tạo các vSwitch để kết nối từ ESXi server đến SAN- Bây giờ chúng ta sẽ thực hiện đưa hệ thống SAN vào vCenter1. từ vsphere client login vào vCenter để thực h… Read More
  • VMWare bài 17 - Cài đặt Openfiler iSCSI với ESXi 2 - Trong bộ sản phẩm vSphere thì Storage là 1 thành phần rất quan trọng trong hệ thống ảo hóa. Nó giúp bạn quản lý tập trung, truy xuất dữ liệu và hỗ trợ các tính năng của vSphere như HA, vMotion... - Có rất nhiều phần mề… Read More
  • VMWare bài 15 - Tạo máy ảo trên vCenter sử dụng SAN- Right-click vào ESXi server cần tạo VM - Đặt tên VM và chọn datacenter - Máy ảo sẽ được lưu trữ trên hệ thống SAN - Version - Tiến hành cài Win2k3 - Cấu hình thông số CPU, RAM và Card mạng - Tạo mới 1 Virt… Read More

0 comments:

Post a Comment