Loading...

Examples

The following example shows how to add a parameter for a command and creation of storage policy copy that has:

Tape library

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName 'SP1' -libraryName 'Lib1' -mediaAgentName 'MA1' -drivePoolName 'driame' -spareMediaGroupName 'Default Scratch' -copyName Copy1

Disabled data aging

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -enableDataAging 0

Managed disk space threshold

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -enableManagedDiskSpace 1

Retain only the full and latest differential backups

This is useful to minimize wasted disk space

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -retainFullAndLastDifferential 1

Number of cycles to retain the data of the copy

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

Number of days to retain the data of the copy

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

Number of days to retain the Archiver data of the copy

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

Extended retention

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -extendedRetentionRuleOne/isenabled 1 -extendedRetentionRuleOne/rule EXTENDED_MONTH -extendedRetentionRuleOne/endDays 1825 -extendedRetentionRuleOne/graceDays 1

Retain monthly full backups for 1825 days on a copy

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -extendedRetentionRuleOne/isenabled 1 -extendedRetentionRuleOne/rule EXTENDED_MONTH -extendedRetentionRuleOne/endDays 1825 -extendedRetentionRuleOne/graceDays 1

Retain monthly full backups for 1825 days and grace days as 1

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -extendedRetentionRuleOne/isenabled 1 -extendedRetentionRuleOne/rule EXTENDED_MONTH -extendedRetentionRuleOne/endDays 1825 -extendedRetentionRuleOne/graceDays 1

Extended retention rule for weekly full backups (90 days) and week starts on Wednesday

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -extendedRetentionRuleOne/isenabled 1 -extendedRetentionRuleOne/rule EXTENDED_WEEK -extendedRetentionRuleOne/endDays 90 1 -extendedRetentionRuleOne/weekDayStarts Wednesday

Retain monthly full backups for 1825 days in Copy1 and month starts on 20th

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -extendedRetentionRuleOne/isenabled 1 -extendedRetentionRuleOne/rule EXTENDED_MONTH -extendedRetentionRuleOne/endDays 1825 -extendedRetentionRuleOne/monthStartsOn 20

To create a storage policy copy with following retention rules:

  • Archive retention - 5 days
  • Basic retention - 7 days and 1 cycle
  • Extended retention - infinite, monthly fulls and grace period as 1 day

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'SP1' -libraryName 'library01' -mediaagentname 'ma01' -copyname 'copy01' -retainArchiverDataForDays 5 -retainBackupDataForCycles 1 -retainBackupDataForDays 7 -extendedRetentionRuleOne/isEnabled 1 -extendedRetentionRuleOne/endDays '-1' -extendedRetentionRuleOne/graceDays 1 -extendedRetentionRuleOne/rule 'EXTENDED_MONTH'

Deduplication with software compression

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -enableSoftwareCompression 1

Deduplication and refer previously sealed DDBs to identify and use existing data blocks to prime the baseline for the current DDB

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -useDDBPrimingoption 1

Deduplication with automatic DDB recover

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -automaticallyPauseAndRecoverDDB 1

Deduplication with manual DDB recover

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -pauseAndRecoverCurrentDDB 1

Suspended the deduplication

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -temporarilyDisableDeduplication 1

Deduplication with DASH full

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -enableDASHFull 1

Source-Side deduplication

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -enableClientSideDedup 1

Combine source data streams

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -combineStreams 1 -numberOfStreamsToCombine 5

Multiplexing

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -multiplexSourceStreams 1 -multiplexingfactor 5

Prevent a job from being copied when the library of the source copy is same as the library of the secondary copy

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -noAuxCopyToSameLibrary 1

Mark media for erase after recycling the media

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -markMediaToBeErasedAfterRecycling 1

Media Refresh

qoperation execute -af <download location>\sp_copycreation.xml -storagePolicyName SP1 -libraryName Lib1 -mediaAgentName MA1 -copyName Copy1 -enableMediaRefresh 1

Disable storage policy copy

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'SP1' -copyName 'Copy1' -active 0

Create storage policy copy associated with a third-party key management server

qoperation execute -af <downloaded location>\sp_copycreation.xml -storagePolicyName 'SP1' -copyName 'Copy1' -keyProviderName 'KeyProviderName'

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