Creating a Storage Policy Copy

To create a storage policy copy for an existing storage policy using xml, the copy name, library name and MediaAgent name are specified under the storagePolicyCopyInfo tag. The retention rules are defined within the retentionRules tag.

To create a storage policy copy using xml:

  1. Download the sp_copycreation.xml file and save it on the computer from where the command will be executed.

  2. Execute the following command from the <software_installation_directory>/Base folder after substituting the parameter values.

    qoperation execute -af downloaded location\sp_copycreation.xml -storagePolicyName 'xxxxx' -libraryName 'xxxxx' -mediaAgentName 'xxxxx' -retainArchiverDataForDays xx -retainBackupDataForCycles xx -retainBackupDataForDays xx -copyName 'xxxxx'

    Example

    The data in the copy is retained for 5 days and 10 backup cycles. The archiver data is retained for 5 days. We recommend to use different libraries for a secondary copy and primary copy.

    qoperation execute -af downloaded location\sp_copycreation.xml -storagePolicyName 'SP1' -libraryName 'Lib1' -mediaAgentName 'MA1' -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName 'Copy1'
×

Loading...