The following table displays the parameters you can use with the commands.
|
Element |
Description |
Parent Element |
|---|---|---|
|
retainBackupDataForCycles |
Number of cycles to retain the data of the copy. |
retentionRules |
|
retainBackupDataForDays |
Number of days to retain the data of the copy. |
retentionRules |
|
retainArchiverDataForDays |
Number of days to retain the Archiver data of the copy. |
retentionRules |
|
enableDataAging |
To enable or disable data aging on a storage policy copy. Once disabled the data on the copy is retained for infinite time. Valid values are: 1 (enable) and 0 (disable). |
retentionFlags |
You can set retention rules to specify the criteria for retaining backup data in a copy. Based on the type of backup and the security requirements of the organization, you can set different criteria for data retention.
Note
Do not use the Update_BasicRetention.xml file to modify the retention for SnapMirror copy.
-
Download the Update_BasicRetention.xml file and save it on the computer from where the command will be executed.
-
Execute the following command from the <software_installation_directory>/Base folder after substituting the parameter values.
-
To disable data aging.
qoperation execute -afdownload location\Update_BasicRetention.xml -storagePolicyName SP1 -copyName Copy1 -enableDataAging 0 -
To retain backup data for 10 cycles.
qoperation execute -af downloaded location\Update_BasicRetention.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -
To retain backup data for 5 days.
qoperation execute -af downloaded location\Update_BasicRetention.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1 -
To retain archiver data for 5 days.
qoperation execute -af downloaded location\Update_BasicRetention.xml -storagePolicyName SP1 -retainArchiverDataForDays 5 -retainBackupDataForCycles 10 -retainBackupDataForDays 5 -copyName Copy1
-