|
This script creates a
copy of the system volume to unallocated space by connecting to
the VProRecovery
agent on the local computer and providing a CopyJob object with the
appropriate properties.
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.
- Enumerate the available volumes to find the volume to be
copied. This script copies the system volume.
- Enumerate the available copy destinations to
find the destination to copy the volume to. This script selects the
first unallocated space large enough to hold the copy. Alternatively, an
existing volume
can be used as the destination by selecting the destination with the
desired MountPoint
property (for example, D:\).
- Create a CopyJob object, specifying its properties to support the
desired options, including the volume and destination found in the previous
steps.
- Create a copy of the volume by sending the CopyJob to the CopyVolume method.
|