|
This script creates a volume backup image of the system volume, saving the
backup image file to the network path that is passed to the script as
a command-line parameter. To accomplish this the script connects to the
VProRecovery agent on the local computer, defines an ImageJob object
containing properties for the backup operation, then runs the ImageJob
immediately. The ImageJob object uses a NetworkLocation object to identify
the backup image file's destination location. The NetworkLocation object
exposes properties for setting a network path and network credentials. Note
that the destination network path must be a UNC path, and the network user name
credential must include both a domain name and user name.
Steps:
-
Create a new instance of the ProtectorAuto object.
-
Use the Connect method of the ProtectorAuto object to initiate a connection to
the agent on a specific computer. Although this script connects to the agent on
the local computer, any computer with the agent installed can be connected to by
providing that computer's name or IP address.
-
Create a NetworkLocation object to specify the network folder to store the
backup image file. Alternatively, a FolderLocation object should be used to
specify a local folder on the local computer.
-
Enumerate the available volumes to find the volumes that will be backed up by
the ImageJob. This script creates images of the system volume.
-
Create an ImageJob object, specifying its properties to support the desired
options, including the NetworkLocation object created in an earlier step.
-
Create the image by sending the ImageJob to the DoImageJob method.
|