Table of ContentsView in Frames

The snap restore command

The snap restore command replaces the current LUN image in the active file system with the point-in-time image captured by the specified Snapshot copy.

Note: You must make sure that the LUN you are disconnecting is not being monitored with the Windows Performance Monitor (perfmon).

Syntax for this command is:

sdcli snap restore [-m MachineName] -d MountPoint -flr [-copy] -s SnapshotName -files filepath[...]

MountPoint is a drive letter, mount point path, volume name, or CSV reparse point.

-flr specifies that you are performing a file level restore.

-copy is an optional setting that forces a copy-restore operation if other restore options fail.

-files enables you to specify the path to the files you want to restore.

filepath is the list of files you want to restore, including the path and drive letter or volume mount point to those files.

Use a hyphen (-) at the end of the file path when you want to restore an entire directory, as well as all subdirectories within that directory, recursively.

Use an asterisk (*) at the end of the specified file when you want to restore all files in that directory only. Subdirectories in that directory will not be recursively restored.

Note: File-level wildcard entries are not supported; therefore, the hyphen and asterisk cannot be combined with a filename at the end of the path you want to restore.

Examples

sdcli snap restore -d l -s Jun_14_09

The preceding example restores the LUN mapped to L: on the local host to its state when the Snapshot copy named Jun_14_09 was taken.

sdcli snap restore -flr -s st_10_18_2009 -files c:\mnt1\v1\v1_d.vhd f:\vm1\vm1.vhd "f:\vm1\Virtual Machines\-"

The preceding example restores a single file called v1_d.vhd in the volume mount point c:\mnt1\, a single file called vm1.vhd from the volume mount point f:\vm1, and restores recursively the folder "Virtual Machines" from the Snapshot copy st_10_18_2009.