Sets up a schedule for creating snapshot collections or replication collections for the selected volume collection.
Note: Using a schedule can result in the creation of many snapshots or replicas. To control the number of snapshots or replicas, use the max-keep command parameter when creating a schedule. In addition, the size of the snapshot reserve limits the number of snapshots you can create for a volume, and the replica reserve limits the number of replicas you can create for a volume.
For each schedule, you must specify:
Optionally, you can specify other parameters, depending on the schedule type. To specify more than one parameter, separate them with commas and no spaces.
Format
collection select coll_name schedule create sched_name parameter
Variables
|
coll_name |
Name of a volume collection. |
|
sched_name |
Schedule name, up to 64 alphanumeric characters. |
Parameters
|
enable|disable |
Enables (default) or disables the schedule. |
|
end-date mm/dd/yy |
Month, day, and year that the schedule will stop. The default is no ending date. |
|
end-time hh:mm[AM|PM] |
Time when the schedule will stop creating a sequence of snapshot or replicas collections. Use 24-hour time or specify AM or PM. Applicable only to schedules of type daily. |
|
frequency nmins|nhour[s] |
Interval between the creation of snapshot or replica collections, in minutes or hours (for example: 5mins, 1hour, 2hours). Applicable only to schedules of type hourly and daily. |
|
max-keep n |
Maximum number of snapshot or replica collections created from the schedule to retain (from 1 to 512). The default is 10. If you reach the maximum limit, the oldest snapshot or replica collection created from the schedule will be deleted before another is created. |
|
partner partner_name |
Name of the partner that will store replica collections created through the schedule. Required for replication schedules. |
|
read-write|read-only |
Permission for snapshots created from the schedule. The default is read-write. |
|
repeat-interval ndays |
Number of days between the creation of snapshot or replica collections. Applicable only to schedules of type daily. |
|
start-date mm/dd/yy |
Month, day, and year that the schedule will start. The default is the day that the schedule was created (or the following day, if the starting time has passed). |
|
start-time hh:mm[AM|PM] |
Time when the schedule will start creating snapshot or replica collections. Use 24-hour time or specify AM or PM. Required. |
|
type schedule_type |
Type of schedule, either once, hourly, or daily. Required. |
Examples
The following command sets up a schedule called dailydbsch that creates a replica collection of volume collection db1col on partner psgroup2, every day at 11:30 PM:
> collection select db1col schedule create dailydbsch type daily start-time 11:30PM repeat-interval 1days partner psgroup2
Schedule creation succeeded.
The following command sets up a schedule called mailsch that creates a snapshot collection of volume collection mailcol every day, every 2 hours, from 7:00AM to 8:00PM:
> collection select mailcol schedule create mailsch type daily
start-time 07:00AM end-time 20:00 frequency 2hours repeat-interval 1days
Schedule creation succeeded.