Integrating Citrix XenServer and HP Data Protector

Restore using the integration
To restore a backup using the integration, you need to perform the following operations:
1. Update the configuration file DPxen_config.py, or your own equivalent.
2. Ensure that the temporary backup directory is empty.
3. Specify a Data Protector restore.
4. Perform the restore.
These operations are described in this section.
Updating configuration script DPxen_config.py for restore
In a similar way to backup, you must use the configuration file DPxen_config.py, or a
configuration file with a name of your own, to specify the parameters required to perform a
restore:
Mode
The type of backup to be used and whether all, or only specified virtual
machines are to be backed up. Valid options are:
online, allOnline,
offline, and allOffline. For explanations of these, see Integration
concepts
on page 2.
url
The URL of the XenServer containing the virtual machines to be restored.
username
The username of a user with the required access rights to the Xen Server.
password
The password of the user specified in username.
vmName
A list containing the names of the virtual machines to be backed up. If you
specify
online or offline for the Mode parameter, you must specify the
names of the individual virtual machines that you want to restore. The format of
the list is:
["name1", "name2",...]
If you specify allOnline or allOffline for the Mode parameter, the
vmName parameter is ignored.
debug
A Boolean value that should be set to True if you want to create a debug file
during the restore.
sr
The name of the storage repository to which you want to restore the virtual
machines specified in the
vmName parameter. This does not have to be the same
storage repository as the one in use when the virtual machine was backed up. If
the specified value is blank (
sr = "") the restore is performed to the default
storage repository.
Important: You must have a default storage repository defined if you leave this
parameter blank for a restore, otherwise the restore will fail.
Example restore configurations
Restore the Debian virtual machine, which was backed up using offline mode, into the
default storage repository. Create a debug file.
Mode = "offline"
url =
username = "user"
password = "myPassword"
vmName = ["Debian"]
debug = False
sr = ""
http://tpc227.company.com
11