|
This script enables scheduled backup images by connecting to the VProRecovery
agent on the local computer and providing a new ImageJob object with
the appropriate properties. A Task object is used to describe the desired
schedule. A FolderLocation object describes the location (an existing local
path
provided as a command-line argument) where the backup images should
be stored. The new ImageJob object is then passed to the agent to be saved
and run as scheduled.
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 that has the agent installed can be connected to by
providing that computer's name or IP address.
- Create a FolderLocation object to specify the
local folder to store the backup image files. Alternatively, a NetworkLocation object should be used to
specify a folder on a network share. A NetworkLocation lets you specify credentials for accessing the network share.
-
Create a Task object to define scheduling
information such as what time of day the backup image files should be created and
how often the job should repeat.
- Enumerate the available volumes to find the volumes that will be backed up by the job. This script creates backup images of the system
volume.
- Create an ImageJob object, specifying its properties to support the
desired options, including the FolderLocation and Task objects created
in previous steps.
- Save the new ImageJob by sending it to the AddImageJob
method.
|