Restore to Local Disk with vSphere Plugin
Bacula Enterprise allows restoring any file (bvmdk
, ovf
, …) to
your File Daemon’s local disks. Then, you may mount the image locally
using the VMware vmware-mount
tool or qemu-nbd
and perform file
level restores.
By using where=/path/to/dir
in the restore options, the Plugin will
automatically restore selected files to this location on your File
Daemon’s local disk.
% qemu-img convert -O vmdk /tmp/0.bvmdk /tmp/0.vmdk
It is also possible to copy the raw image to any device or to mount it and restore files directly.
# modprobe nbd max_part=16
# qemu-nbd -c /dev/nbd0 /tmp/0.bvmdk
# partprobe /dev/nbd0
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a7154
Device Boot Start End Blocks Id System
/dev/nbd0p1 * 63 1686824 843381 83 Linux
/dev/nbd0p2 1686825 4192964 1253070 5 Extended
/dev/nbd0p5 1686888 1959929 136521 82 Linux swap
/dev/nbd0p6 1959993 4192964 1116486 83 Linux
# mount /dev/nbd0p1 /mnt/image
# ls /mnt/image
bin cdrom etc initrd.img lost+found mnt proc sbin
tmp var boot dev home lib media opt
sys usr vmlinuz srv selinux root
# umount /mnt/image
# qemu-nbd -d /dev/nbd0
Go back to the vSphere Restore page.
Go back to the main vSphere Plugin Operations page.
Go back to the main vSphere Plugin page.