User Tools

Site Tools


application_specific_backups:poor_man_vmware_consolidated_backup

Is very hard (but not impossible i think) to install bacula on VMware ESXi (4.X) host.

For my situation i have resoved with this script: pmvcb and and rsync for retreiving data from ESXi:

  • ESXi host: esxi.example.com
  • Virtual machine name: VM1
  • Directory of ESXi where store cloned disks and vmx: /vmfs/volumes/datastore/BACKUPS/vm1
Job {
 Name = "DisasterRecoveryVM1"
 Jobdefs = "DisasterRecoveryJob"
 Client = local-fd
 FileSet = "VM1 Set"
 RunScript {
  Command = "/etc/bacula/extra-scripts/pmvcb -v vm1 -d /vmfs/volumes/datastore/BACKUPS/vm1 -h esxi.example.com -o -L \"rsync -av --partial --partial-dir=.rsync-partial root@esxi.example.com:/vmfs/volumes/datastore/BACKUPS/vm1 /backup/dump/vm1-dr\""
  RunsOnClient = No
  RunsWhen = Before
  Fail Job On Error = Yes
  }
 RunScript {
  Command = "rm -rf /backup/dump/vm1-dr"
  RunsOnClient = No
  RunsWhen = After
  Fail Job On Error = No
  RunsOnFailure = No
  }
 }

FileSet {
 Name = "VM1 Set"
 Include {
  Options {
    signature = MD5
    compression = GZIP9
    xattrsupport = yes
    aclsupport = yes
  }
  File = /backup/dump/vm1-dr/
 }
}

You must implement RSA authentication for ssh: http://plone.lucidsolutions.co.nz/linux/vmware/esxi/enabling-ssh-with-public-key-authentication-on-vmware-esxi-4

application_specific_backups/poor_man_vmware_consolidated_backup.txt · Last modified: 2011/07/26 09:57 by pbertera