Loading...

Creating a Storage Policy Copy Using a Global Secondary Copy Policy Through the Command Line Interface

To run the secondary copy operation, you must create a storage policy copy and set it up to use the data paths of a global secondary policy copy through the command line. You must use the createcopy.xml configuration file, which contains the parameters required for creating the a storage policy copy using a global secondary copy policy.

Procedure

  1. Log on to the CommServe by running the qlogin command.
  2. Download the createcopy.xml file and save it on the computer from where the command will be run.
  3. Choose one of the following methods to create a storage policy copy using a global secondary copy policy:
    • Using the XML configuration file to specify command line arguments:
      1. In a text or XML editor, open the createcopy.xml file and change the XML element values.
      2. Run the following command from the software_installation_directory\Base directory:

        qoperation execute -af <download location>\createcopy.xml

    • Using the XML configuration file to pass input parameters in the command line:
      1. Run the following command from the software_installation_directory\Base directory:

        qoperation execute -af '<download location>\createcopy.xml' -storagePolicyCopy/storagePolicyName 'storage_policy_name' -copyName 'storage_policy_copy_name' -globalAuxCopy/storagePolicyName 'global_secondary_policy_copy_name' -useGlobalAuxCopyPolicy 1 -combineStreams 1

        For more information on parameters, see Elements for Modifying Data Encryption Properties.

Example

To create a storage policy copy using a global secondary copy policy run the following command:

  • Using the XML configuration file as command line argument:

    In the XML configuration file, the following elements are modified:

    qoperation execute -af <download location>\createcopy.xml

  • Using the XML configuration file to pass input parameters:

    qoperation execute -af '<download location>\createcopy.xml' -storagePolicyCopy/storagePolicyName 'SP1' -copyName 'toGACP22' -globalAuxCopy/storagePolicyName 'gacp' -useGlobalAuxCopyPolicy 1 -combineStreams 1