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.
AddImageJob.ps1 Example Script 

Description: Create a job for regularly scheduled backup images of a volume to a local folder.
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.
Task Defines a repeating or one time scheduled event.
FolderLocation Describes a local folder location to store backup images.
Remarks

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:

  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 that has the agent installed can be connected to by providing that computer's name or IP address.
  3. 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.
  4. 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.
  5. 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.
  6. Create an ImageJob object, specifying its properties to support the desired options, including the FolderLocation and Task objects created in previous steps.
  7. Save the new ImageJob by sending it to the AddImageJob method.

Home

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