HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96009, November 2009)

84 of 332
Deleting a snapshot
Because Storage Mirroring Recover uses the Microsoft Volume Shadow Copy service to
create snapshots, the snapshots can be managed through the Volume Shadow Copy
command line administrator. You can also view, copy, or restore files from the Previous
Version tab by accessing the file properties through a share using Windows Explorer.
See your Volume Shadow Copy documentation for details. Additionally, you can use the
scripting commands to delete snapshots on the target.
1. View the snapshots on the target by using the snapshot list command.
Command SNAPSHOT LIST
Description Displays a list of snapshots associated with a connection
Syntax SNAPshot LIST <con_id> [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 list 1
snap list 1
Notes
Target names that contain non-alphanumeric characters must be
enclosed in quotation marks.
2. Delete snapshots on the target by using the snapshot delete command.
Command SNAPSHOT DELETE
Description Deletes the specified snapshot(s) from the target
Syntax
SNAPshot DELete <con_id> <snapshot_list_number | ALL | OLD
[ GOOD | BAD ] > [ON <target>]
Options
con_id—Connection ID assigned to the source/target
connection
snapshot_list_number—The snapshot number retrieved
from the SNAPSHOT LIST command
ALL—Deletes all snapshots
OLD—Deletes only the oldest snapshot
GOOD—If specified, deletes only good snapshot. If used with
ALL, all good snapshots will be deleted. If used with