Friday, April 18, 2008

How to create a shadow copy and mount it.

To create a shadow copy run this command.
vshadow -scsf D:

To list the shadow copies run this command.
vssadmin list shadows

To mount to a directory run this command:
mountvol D:\mountpoint \\?\Volume{21bf079c-f9db-11dc-b4a5-0015173b1ee7}\

You could also mount it to a drive using the vshadow command.
vshadow.exe -el={ShadowID},Driveletter:
example: vshadow.exe -el={4cdd0ee7-6448-4ab7-9c55-576c9dd9d41d},P:


To remove the mountpoint from the directory run this command.
mountvol D:\mountpoint /d

No comments: