Exposing VSS Shapshots as a drive letter

Here is about the most useful bit of script magic I have seen for Windows in quite awhile:
http://blogs.msdn.com/adioltean/archive/2005/01/20/357836.aspx

The script shown here allows you to create a persistent snapshot of a Windows Server 2003 volume, and then expose it as a drive letter. This opens up all sorts of other scripting possibilities. Most immediately, it allows me synchronize filesystems from a point-in-time copy on demand on in a scheduled task. I need this for replication of Windows deployment points, and for refreshing our pre-prod ApplicationXtender server from the production environment.

This script uses “VSHADOW.exe”, part of the VSS SDK available here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=0B4F56E4-0CCC-4626-826A-ED2C4C95C871&displaylang=en

VSHADOW cannot expose existing “client accessible” shapshots that were generated by standard Volume Shadow Sopy Service scheduled tasks, but you can use this script to schedule your own snaps. VSHADOW can even create a snap, execute arbitrary code (such as “robocopy”), and then delete the snap immediately (using “non-persistent snapshots).

Cool!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s