Create policy attributes
To create policy attributes in Horizon follow these steps:
Log on to Horizon using admin user.
Navigate to Admin > NBOS Backup Admin > NetBackupOpenStack > Policy Attributes.
Click .
Provide the policy attribute name and the description on the Details tab.
Provide the RPO on the Policy tab.
Select the Snapshot Retention Type and the value.
Number of snapshots to keep
Number of days to retain snapshots
Select one of the options for Full Backup Interval.
Never
Always
Number of Snapshots
Click .
nbosjm policy-create --policy-attribute-fields <key=key-name>
[--display-description <display_description>]
[--metadata <key=key-name>]
<display_name>
--policy-attribute-fields <key=key-name> Specify following key value pairs for policy attribute fields. Specify option multiple times to include multiple keys. "interval" : "1 hr" "retention_policy_type" : "Number of Snapshots to Keep" or "Number of days to retain Snapshots" "retention_policy_value" : "30" "fullbackup_interval" : "-1" (Enter Number of incremental snapshots to take Full Backup between 1 to 999, "-1" for "NEVER" and "0" for "ALWAYS") For example - policy-attribute-fields interval="1 hr" - policy-attribute-fields retention_policy_type="Number of Snapshots to Keep" - policy-attribute-attribute-fields retention_policy_value="30" - policy-attribute-fields fullbackup_interval="2"
--display-description <display_description> Optional policy description. (Default=No description)
--metadata <key=keyname> Specify key value pairs to include in the policy type metadata. Specify option multiple times to include multiple keys. key=value
<display_name> The name the policy will get.