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 30 - vSphere Replication - part 34. Testing Bây giờ bạn vào HDD trên Host 3 để kiểm tra xem có VM 2k3 mà bạn đã thực hiện sao chép từ SAN qua chưa Và như bạn thấy ở đây VM 2k3 đã được bộ lại thành công Bây giờ bạn có thể chạy VM 2k3 mới được Rep… Read More
  • ESXi không hiển thị data trong iSCSI target mặc dù đã kết nối. Vấn đề: ESXi không hiển thị dữ liệu trên iSCSI Target mặc dù ESXi đã kết nối tới iSCSI Target. Nguyên nhân: Storage PCS đạt ngưỡng hoặc đã hết dung lượng. Phương hướng xử lý: Ngắt kết nối của tất cả initiator Targ… Read More
  • VMWare bài 29 - vSphere Replication - part 23. Cấu hình vSphere Replication Bạn phải chuột lên VM mà bạn muốn vsphere Replication Bạn có thể sao chép VM mà bạn muốn đến 1 site khác có vCenter hoặc sao chép lên Cloud Ở đây bạn có thể sao chép VM của bạn đến… Read More
  • Reset Root password Vmware ESXi 4.1 Server Đôi khi ta quên hay không biết password của Vmware ESXi 4.1 Server do nhiều nguyên nhân … vì thế sẽ khó khăn trong việc quản lý server này . Và bài này hường dẫn reset lại password Vmware ESXi 4.1 cho root bằng hình ảnh Ste… Read More
  • HOW TO MIGATE(UPDATE) ESXI 5.0 TO 5.1 1.     PHƯƠNG PHÁP: để migrate esxi 5.0 to 5.1  có 3 cách sau: -         1. Sử dụng scripted -         2. Sử dụng Vmware update maganer… Read More

0 comments:

Post a Comment