Home > Windows Server Tips > Windows Storage Management > Restore shadow copies from command line with volrest tool
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS STORAGE MANAGEMENT

Restore shadow copies from command line with volrest tool


Rahul Shah, Contributor
11.09.2006
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


The shadow copies feature in Windows Server 2003 automatically creates point-in-time copies or snapshots of files in shared folders. This lets users recover accidentally overwritten or deleted work without having to ask an administrator to restore from backup.

Still, one problem admins face while restoring shadow copies is searching for files on a server, listing the available versions of a file and locating previous versions of a file and restoring them to a specific folder.

A command-line tool called Volrest.exe in the Windows Server 2003 Resource Kit can help admins resolve this problem.

To search for a file and list the available versions using Volrest, an admin must use the Universal Naming Convention (UNC) path of the server and shared folder that he wants to examine. The UNC path of the server will have the following syntax:

\\
Name\SharedFolder

where Name is the domain name or IP address of the server and SharedFolder is the name of the shared folder.

To search for files within the shared folder by adding the name or part of the name to the UNC pathname while using volrest:

  1. Go to Start -> Run
  2. Type cmd in the Open dialog box. This will take you to command line.
  3. Type volrest\\Data\Fees\June_Fee.doc

This will give you previous versions of the June_Fee.doc file in the 'Fees' share on the server named DATA.

If you only know part of the name of file is known, use wildcards, i.e.,

volrest \\Data\Fees\*
Fee.doc

So in this case, Volrest would return any files whose names end in "Fee.doc."

Finally, to restore the files to another location, use this command:

volrest \\Name\SharedFolder\FileName
/r:Restore

where Restore is the local or network path to the folder which you want to restore the file's versions to.

Note: The Volrest tool has one drawback -- its searches are not case-sensitive.

About the author: Rahul Shah currently works at a software firm in India, where he is a systems administrator maintaining Windows servers. He has also worked for various software firms in testing and analytics, and also has experiences deploying client/server applications in different Windows configurations.

More information on this topic:


Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Windows Storage Management
Avoid the big mistakes when backing up virtual servers
Connecting Hyper-V hosts to iSCSI targets in Windows
File classification the automated way with Windows Server 2008 R2
Using DFS to create file system virtualization in Windows Server 2008
File server migration tips for Windows Server 2008
Planning a file server migration to Windows 2008
Self-healing NTFS keeps admins one step ahead of data corruption
The efficacy of backup-as-a-service solutions
Server Message Block 2.0: A new protocol for the millennium
Using WBAdmin to create backups in Windows Server 2008

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsNewsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts