Restore
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
Restores of backups done using the RHV plugin are initiated like restores of any file-based backups. The File Daemon used for the restore, indicated by the Client selected as restore target, must have the RHV plugin installed in order to allow restores to RHV directly.
From version 3.0.0, the plugin allows restores of templates. This integration is compatible with restore of vms. And also it allows create a template from a restored vm, directly. Only the appropriate parameters should be used.
The plugin allows restores of incremental and differential backups, and proxy backups.
If the where parameter of a restore of a RHV Plugin backup is set to
indicate the original location, the restore will be passed directly to
RHV Manager. An example would be a bconsole command line such as:
restore job=one-RHV-VM where=/
If the restore target location is set to anything else, the selected data will be restored to the path indicated. VM or TEMPLATE configuration will be in an XML file, and virtual disk images will be stored in the format applicable, depending on format at backup time and restore options set. This operation is not necessary use the truststore file.
When selecting VMs or TEMPLATEs to restore, these will be represented as
sub-directories in a common root directory @rhv/. Only one VM or one
TEMPLATE (one subdirectory) should be restored at a time, and for
restores to RHV directly (as opposed to a plain file), the whole
subdirectory needs to be marked.
The treatment between templates and vms is done transparently to the
user. Therefore, the user should know if it is a job with a template
backup or vm backup. The only way to know if a backup was from a vm or a
template is by looking at the name of a file inside the directory. This
file will be named as:
nameVm|nameTemplate_vm|template_BaculaRhvBackup.xml. Such as:
exampleVm_vm_BaculaRhvBackup.xml
exampleTemplate_template_BaculaRhvBackup.xml
The options that were used during a backup job are stored in Bacula’s catalog database and they will applied during a restore session. To provide full flexibility, these options can be modified, and some options specific to restores are also available. These options are documented, along with all other plugin options, in table Restore Parameters.
Note that some options will be used to pass lists of values to the plugin. Such lists consist of comma-separated values. If a list does not contain enough values to be applied to all related objects, the default value as shown in table Restore Parameters is used for the missing ones.
Often, special values are available to cause certain behaviour; such options are explained below, in detail.
When using bconsole, the options can be modified using the option 13
(“Plugin Opts”) of the “modify” menu.
Restore Process
The general restore process of a virtual machine consists of
Create a new VM using an XML configuration.
Create all of the VM’s disks.
Create every snapshot, if necessary.
Upload disks.
Create the VM’s network interfaces.
Create the template from the virtual machine, if necesary.
Switch on the virtual machine if necessary.
The disk upload operations are performed using the ImageTransfer service of oVirt.
Read more:
Go back to: RHV Plugin: Operations.