Creates a snapshot or replication schedule for the selected volume.
Do not configure a replication schedule to start before you have completed the first transfer, if using manual replication. The scheduled replication will be skipped if the first transfer is not complete.
For each schedule, you must specify:
Optionally, you can specify other parameters, depending on the schedule type.
Format
volume select vol_name schedule create sched_name parameter ...
Variables
|
vol_name |
Name of a volume. |
|
sched_name |
Schedule name. |
Parameters
|
type type |
Type of schedule, either once, hourly, or daily. You must specify a schedule type. |
|
start-time hh:mm[AM|PM] |
Time when the schedule will start creating snapshots or replicas. Use 24-hour time or specify AM or PM. You must specify a start time. |
|
end-time hh:mm[AM|PM] |
Time when the schedule will stop creating a sequence of snapshots or replicas. Use 24-hour time or specify AM or PM. Applicable only to schedules of type daily. |
|
read-write|read-only |
Permission for snapshots created from the schedule. The default is read-write. |
|
max-keep n |
Maximum number of snapshots or replicas (created from the schedule) to retain. The default is 10. If you reach the maximum limit, the oldest snapshot or replica created from the schedule will be deleted before another snapshot or replica is created. |
|
frequency nmins|nhour[s] |
Interval between the creation of snapshots or replicas, in minutes or hours (for example: 5mins, 1hour, 2hours). Applicable only to schedules of type hourly and 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 already passed). |
|
end-date mm/dd/yy |
Month, day, and year that the schedule will stop. The default is no ending date. |
|
repeat-interval ndays |
Number of days between the creation of snapshots or replicas. Applicable only to schedules of type daily. |
|
partner partner_name |
Name of the partner that will store replicas created through the schedule. You must specify a partner for replication schedules. |
|
enable|disable |
Enables (default) or disables the schedule. |
Examples
The following command creates a replication schedule that creates a replica of volume db1 on partner psgroup2 every day at 11:30 PM:
> volume select db1 schedule create dailydb type daily start-time 11:30PM repeat-interval 1days partner psgroup2
Schedule creation succeeded.
The following command creates a snapshot schedule that creates snapshots of volume mail5 every day, every 2 hours, from 7:00AM to 8:00PM:
> volume select mail5 schedule create msnap type daily start-time 07:00AM end-time 20:00 frequency 2hours repeat-interval 1days