mksnapshotpolicy
Use the mksnapshotpolicy command to create a new snapshot policy that can be associated with volume groups.
Syntax
Parameters
- -name snapshot_policy_name
- (Optional) Indicates a unique name for the snapshot policy. If name is not specified, then a unique name gets generated and assigned to the snapshot policy object.
- -backupunit minute | hour | day | month | year
- (Required) Specifies the unit of time of the backup interval.
- -backupinterval interval_value
- (Required) Indicates the interval between snapshot backups. The value must be an integer (1 - 65535).
- -backupstarttime start_time
- (Optional) Specifies when the first snapshot backup is to be taken. The backup_start_time parameter is displayed in the standard YYMMDDHHMM format. Where: Y is year, (the first) M is month, D is day, H is hour, and (the second) M is minute.
- -retentiondays num_days
- (Required) Specifies the number of days to keep the snapshot backup. The value must be an integer (1 - 365).
- -type localsnapshot | cloudbackup
- (Optional) Specifies the type of schedule being created. By default, the type is localsnapshot.
An invocation example
The following example creates a snapshot policy that, by default, generates a local snapshot every day and retains the local snapshot for 15 days with start time 2102281800
mksnapshotpolicy -backupunit day -backupinterval 1 -backupstarttime 2102281800 -retentiondays 15
The resulting output:
snapshot Policy, id[3], successfully created
