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
-
Log on to the CommServe by running the qlogin command.
-
Download the createcopy.xml file and save it on the computer from where the command will be run.
-
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:
-
In a text or XML editor, open the createcopy.xml file and change the XML element values.
-
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:
-
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]
-
Using the XML configuration file to pass input parameters to create a storage policy copy that overrides the retention rules of the Global Secondary Copy Policy:
qoperation execute -af '$[download location]\createcopy.xml' -storagePolicyCopy/storagePolicyName '$[SP1]' -copyName '$[toGACP22]' -globalAuxCopy/storagePolicyName '$[gacp]' -useGlobalAuxCopyPolicy $[1] -combineStreams $[1] -overRideGACPRetention $[1]