Loading...

Creating a Selective Copy

To create a selective copy, in addition to the parameters described in the Available XML Attributes for Storage Policy Copy Creation, reference the following table for valid values of lastFull and lastFullWait parameters.

Selective Copy Type

Valid Values

First full backup

lastFull = 0, lastFullWait = 0

Last full backup with most recent job if there are no more full backup schedules in current time period

lastFull = 1, lastFullWait =0

Last full backup and wait until the current period is over before selecting a backup for this time period

lastFull = 1, lastFullWait =1

  1. Download the sp_copycreation.xml file and save it on the computer from where the command will be executed.
  2. Before running the command, review the Available XML Attributes for Storage Policy Copy Creation.
  3. 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' -copyName 'xxxxx' -copyType 'SELECTIVE' -selectiveRule 'xxxxx' -libraryName 'xxxxx' -mediaAgentName 'xxxxx'

    Example

    To create a selective copy with all full backups rule.

    qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'SP1' -copyName 'Selective Copy' -copyType 'SELECTIVE' -selectiveRule 'SELECTIVE_ALLFULL' -libraryName 'Lib1' -mediaAgentName 'MA1'

    To create a selective copy with first full backups rule for the month that starts on 12th.

    qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'SP1' -copyName 'Selective Copy' -copyType 'SELECTIVE' -selectiveRule SELECTIVE_MONTH -monthStartsOn 12 -lastFull 0 -lastFullWait 0 -libraryName 'Lib1' -mediaAgentName 'MA1'

    To create a selective copy with last full backups rule for the month with most recent job if there are no more full backup schedules for the month.

    qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'SP1' -copyName 'Selective Copy' -copyType 'SELECTIVE' -selectiveRule SELECTIVE_MONTH -monthStartsOn 12 -lastFull 1 -lastFullWait 0 -libraryName 'Lib1' -mediaAgentName 'MA1'

Last modified: 10/12/2018 8:32:05 PM