addsnapshotpolicyschedule

Use the addsnapshotpolicyschedule command to add a new schedule in an existing snapshot policy. It is added as a second schedule in addition to the existing schedule in the policy.

Syntax

Read syntax diagramSkip visual syntax diagram addsnapshotpolicyschedule -type localsnapshotcloudbackup -backupunit minutehourdayweekmonth -backupstarttime start_time -backupinterval interval_value -retentiondays num_days snapshot_policy_idsnapshot_policy_name

Parameters

-type localsnapshot | cloudbackup
(Required) Specifies the type of schedule.
-backupunit minute | hour | day | week | month
(Required) Specifies the unit of time of the backup interval.
-backupstarttime start_time
(Required) Specifies when the first snapshot backup is to be taken. The backup_start_time parameter is displayed in the standard YYMMDDHHMM format, where: YY is year (The first) MM is month DD is day HH is hour (The second) MM is minute.
-backupinterval interval_value
(Required) Indicates the interval between snapshot backups. The value must be an integer (1 - 65535).
-retentiondays num_days
(Required) Specifies the number of days to keep the snapshot backup. The value must be an integer (1 - 365).
snapshot_policy_id
(Required) Specifies the snapshot policy ID. The value must be an integer (0-39).
snapshot_policy_name
(Required) Specifies the snapshot policy name.
Note: Backup-start-time supplied to mksnapshotpolicy will apply to the first schedule that it will create. Subsequent schedule is created using this CLI which gets its own backup-start-time. However, note that backup start time optionally supplied to mkvolumegroup -snapshotpolicy will apply to all the schedules in that policy.

An invocation example

The following example adds a new schedule to an existing snapshot policy that generates a localsnapshot every day and retains the local snapshots for 15 days.

addsnapshotpolicyschedule -type localsnapshot -backupunit day -backupinterval 1 -retentiondays 15  3

The resulting output:

No feedback.