Creating a Schedule Policy Using the Command Line Interface

You can create a schedule policy.

Before You Begin

Create an XML file that includes the proper scheduling options for the schedule policy by clicking the Save As Script button available in the New Schedule Policy dialog box.

Procedure

  1. If you are not logged on to the CommServe computer, run the qlogin command.

  2. Download the sample_create_schedule_policy.xml file and save it in the software_installation_directory/Base directory.

    For an advanced sample XML file, download advanced_sample_create_schedule_policy.xml.

  3. Rename the XML file to create_schedule_policy.xml or update the subsequent qoperation to the appropriate file name and path.

  4. On the command line, go to software_installation_directory/Base, and then type the following commands:

    qoperation execute -af create_schedule_policy.xml -task/taskName schedule_policy_name
  5. To log off the CommServe computer, run the qlogout command.

Example

The following command creates schedule policy SP001 with two associated subclients. The subclients are defined in the XML file. You can add additional <associations> blocks to the XML file to associate more entities when you create the schedule policy. You must include the hierarchy above the entity and the entity you want to add.

qoperation execute -af schedule_policies_edit.xml -task/taskName SP001

The schedule_policies_edit.xml file contains the following elements:

    <associations>
       <subclientName>default</subclientName>
       <backupsetName>defaultBackupSet</backupsetName>
       <appName>File System</appName>
       <clientName>solar</clientName>
     </associations>
     <associations>
       <subclientName>IndexBackup</subclientName>
       <backupsetName>defaultBackupSet</backupsetName>
       <appName>File System</appName>
       <clientName>solar</clientName>
     </associations>
×

Loading...