mksafeguardedpolicy
Use the mksafeguardedpolicy command to create a new Safeguarded policies to associate with the volume groups.
Syntax
Parameters
- -name safeguarded_policy_name
- (Optional) Indicates a unique name for the Safeguarded policy. If name is not specified then a unique name is automatically generated with prefix sgpolicy and assigned to the Safeguarded policy.
- -backupunit minute | hour | day | month | year
- (Required) Specifies the unit of time of the backup interval.
- -backupinterval interval_value
- (Required) Indicates the interval between Safeguarded backups. The value must be an integer (1 - 65535).
- -backupstarttime start_time
- (Required) Indicates the time when the Safeguarded backups are started. The value must be in the
format YYMMDDHHmm.
YY
is the year.MM
is the month.DD
is the day.HH
is the hour.mm
is the minute.
Note: If the backup start time is in the past, it will be advanced according to the backup interval until a time in the future is reached. Backup start time does not include seconds. - -retentiondays num_days
- (Required) Indicates the number of days to keep the Safeguarded backups. The value must be an integer (1 - 365).
The system supports a maximum of 32 Safeguarded policies with 3 predefined policies and 29 user-defined policies. Predefined policies are named predefinedsgpolicy0, predefinedsgpolicy1, and predefinedsgpolicy2 and cannot be changed in either the command-line interface or the management GUI. User-defined Safeguarded policies have IDs that start following the predefined Safeguarded policies.
An invocation example
mksafeguardedpolicy -backupunit day -backupinterval 1 -backupstarttime 2109010100 -retentiondays 7
The resulting output:
Safeguarded Policy, id [3], successfully created