HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

7 - 15
Working with Storage Mirroring snapshots
You can use Storage Mirroring commands to create a snapshot schedule, initiate a manual snapshot, apply a snapshot on the
target, or delete a snapshot from the target.
Creating a snapshot schedule
Use the snapshot schedule commands to establish scheduled snapshots.
1. To establish and initiate a snapshot schedule, use the snapshot schedule every command.
2. After you have created a snapshot schedule, you can view the configuration of the schedule by using the snapshot
schedule display
command.
Command SNAPSHOT SCHEDULE EVERY
Description Configures and initiates a snapshot schedule
Syntax
SNAPSHOT SCHEDULE <con_id> EVERY <number> <time_units> [STARTTIME = <mm/dd/yy> [hh:mm] ]
[ON <target>]
Options
con_id—Connection ID assigned to the source/target connection
number—Any number indicating the frequency for the scheduled snapshots
time_units—Minutes (min), hours (hr), or days (day)
mm/dd/yy—Date in month/day/year format indicating when the schedule will begin
hh:mm—Time in hour:minute format, using the 24-hour clock, indicating when the schedule will
begin
target—Name of the target, an IP address on the target, or a virtual IP address
Examples
snapshot schedule 1 every 12 hours
Notes Any existing snapshot schedules for this connection will be overwritten.
Target names that contain non-alphanumeric characters must be enclosed in quotation marks.
Command SNAPSHOT SCHEDULE DISPLAY
Description Displays the snapshot schedule
Syntax
SNAPSHOT SCHEDULE <con_id> DISPLAY [ON <target>]
Options con_id—Connection ID assigned to the source/target connection
target—Name of the target, an IP address on the target, or a virtual IP address
Examples
snapshot schedule 1 display
Notes Target names that contain non-alphanumeric characters must be enclosed in quotation marks.