Veritas System Recovery 16 Automation - THIS SCRIPTING DOCUMENTATION IS PROVIDED IN CONJUNCTION WITH YOUR LICENSE FOR VERITAS SYSTEM RECOVERY SOFTWARE PRODUCTS, AND MAY BE USED ONLY IN CONJUNCTION WITH THAT SOFTWARE, UNDER THE TERMS OF THE END USER LICENSE AGREEMENT THAT ACCOMPANIED THE SOFTWARE. THIS SCRIPTING DOCUMENTATION IS PROPRIETARY VERITAS PROPERTY. YOU MAY NOT COPY, DISTRIBUTE, LICENSE OR SUBLICENSE THE SCRIPTING DOCUMENTATION.
CreateImageNow.ps1 Example Script 

Description: Create an immediate backup image of a volume and save it to a folder on a network share.
Version: 11.1
View Script
Objects Used
ProtectorAuto Central automation object for accessing VProRecovery functionality.
ImageJob Information used to create volume backup images.
Volume Represents a volume available for imaging.
NetworkLocation Describes a network folder location to store backup images.
Remarks

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:

  1. Create a new instance of the ProtectorAuto object.
  2. 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.
  3. 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.
  4. Enumerate the available volumes to find the volumes that will be backed up by the ImageJob. This script creates images of the system volume.
  5. Create an ImageJob object, specifying its properties to support the desired options, including the NetworkLocation object created in an earlier step.
  6. Create the image by sending the ImageJob to the DoImageJob method.

Home

Copyright © 2005-2016 Veritas Technologies LLC. All Rights Reserved.