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 |
-
Download the sp_copycreation.xml file and save it on the computer from where the command will be executed.
-
Before running the command, review the Available XML Attributes for Storage Policy Copy Creation.
-
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 -startTime/timeValue YYYY-MM-DDExample
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 2021-January-12.
qoperation execute -af downloaded location\sp_copycreation.xml -storagePolicyName 'SP1' -copyName 'Selective Copy' -copyType 'SELECTIVE' -selectiveRule SELECTIVE_MONTH -lastFull 0 -lastFullWait 0 -libraryName 'Lib1' -mediaAgentName 'MA1' -startTime/timeValue '2021-01-12'To create a selective copy with last full backups rule for the month that starts on 2021-January-12 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 -lastFull 1 -lastFullWait 0 -libraryName 'Lib1' -mediaAgentName 'MA1' -startTime/timeValue '2021-01-12'