设为首页 收藏本站
查看: 575|回复: 0

[经验分享] Working with the Windows Server 2003 Volume Shadow Copy Service

[复制链接]

尚未签到

发表于 2016-5-19 07:59:30 | 显示全部楼层 |阅读模式
  New to Windows Server 2003, the Volume Shadow Copy Service provides users with a way of restoring files themselves without having to involve you. This article explains how to implement and configure this service.

<!-- >>> -->  Although I always believed that Windows 2000 Server was a good operating system, I always felt like a few things were missing from it. Take the recycle bin for example. The Recycle Bin was first introduced in Windows 95, and was included in Windows 2000 as well. The problem was that it only worked locally. For example, if an administrator was sitting at the server console and accidentally deleted a file, they could easily go into the recycle bin and get it back. However, if that same administrator was at their workstation accessing the server remotely and accidentally deleted the same file, it would be gone forever. Because the file was deleted from across the network rather than locally, the file would not be placed into the Recycle Bin.
  The good news is that Microsoft has remedied this problem in Windows Server 2003. The bad news is that recovering a file that was accidentally deleted from across the network isn’t quite as simple as opening the Recycle Bin. Instead, the process is controlled through the Volume Shadow Copy Service (VSS).
What is the Volume Shadow Copy Service?
  The Volume Shadow Copy Service is more of a convenience feature rather than an alternative to backups. The reason for this is that shadow copy data resides on the same volume as the original data. Therefore, if the volume became corrupt then there would be no way or restoring shadow copy backups. You would have to rely on a traditional tape backup instead.
  Another limitation to shadow copy backups is that they only work if Windows is functional. For example, if Windows crashed due to a corrupt registry then Windows would not be functional. You would therefore have to restore Windows from a traditional backup rather than from a shadow copy backup.
  Still another limitation is that shadow copy backups are designed to restore one file at a time. Because of this, shadow copy backups are not suitable for restoring large numbers of files.
  These limitations do not mean that shadow copy backups are useless though. On the contrary. If a user needs to revert to a previous version of a file then a shadow copy backup will allow them to restore a previous version without involving you. You don’t have to configure a restore operation, you don’t have to mount a tape, you don’t have to do anything at all.
Enabling Volume Shadow Copy
  All of the VSS configuration options are accessible through Windows’ Disk Management Console. You can access the Disk Management Console by entering the DISKMGMT.MSC command at the Run prompt. When the Disk Management console opens, you must verify that the volume that you plan on running VSS on is formatted as NTFS. If the volume is currently formatted as FAT or as FAT-32, you can enter the command CONVERT C: /FS:NTFS at the Run prompt, where C: is the drive letter assigned to the volume that you want to convert. Keep in mind that converting a volume to NTFS is a one way operation and the volume can not be converted back to FAT or FAT-32 without reformatting.
  Now that the hard disk has been prepared, it’s time to enable VSS. To do so, right click on the volume that you wish to enable VSS for and select the Properties command from the resulting shortcut menu. Keep in mind that VSS can only be enabled at the volume level. You can not control VSS at the disk level or at the folder or share level. At this point, you should see the volume’s properties sheet appear. Select the properties sheet’s Shadow Copies tab and you will be able to see which, if any, of the volumes currently have Shadow Copy enabled, as shown in Figure A.
DSC0000.jpg
  Figure A: You can use the Shadow Copies tab of the volume’s properties sheet to see where shadow copy has been enabled
  You could just click the Enable button to enable shadow copies on the selected volume, but I recommend clicking Settings instead. This allows you to configure the shadow copy behavior. As you can see in Figure B, Windows automatically limits the amount of space that can be consumed by shadow copies (although shadow copies require 100 MB minimum). You can tell Windows not to limit the space though. I recommend not limiting VSS because with enough free disk space, VSS can maintain up to 64 versions of each file. Besides, as disk space starts to run low, Windows will automatically delete older shadow copies to make room for new data.
DSC0001.jpg
  Figure B: Windows automatically limits shadow copy’s disk space consumption
  Another feature of the Settings dialog box is the schedule. By default, Windows schedules shadow copies to be made twice a day. You can set the schedule to make shadow copies of your data as often as you like provided that you don’t schedule shadow copies to be made more than once an hour. Although Windows won’t stop you from creating shadow copies more often than once an hour, doing so really hurts the server’s performance and runs the risk of making incomplete shadow copies.
  When you are done setting up the configuration options, just click OK and then click Enable to enable VSS on the selected volume. Click OK to close the volume’s properties sheet.
Shadow Copy Clients
  Enabling VSS is only half of the battle. The other thing that you must do is to configure your workstations so that they can access the shadow copy files. To do so, you must create a network share on your server that allows clients to access the server’s %SYSTEMROOT%/TWCLIENT/X86 folder.
  Once the location has been shared, go to a client machine and run the TWCLI32.MSI program found in this folder. Running this file launches the Previous Version Client Setup wizard. The wizard is completely automated and doesn’t require you to do anything other than click Finish when installation completes.
  Now suppose that a user needed to restore a previous version of a file. To do so, they would need to right click on the file and select the Properties command from the resulting shortcut menu. When the file’s properties sheet appears, the user must select the Previous Versions tab to reveal any previous versions of the file that may exist. Keep in mind that previous versions arte not automatically created every time that the file changes, but rather every time that a scheduled (or manual) shadow copy runs and detects a version change. If there are previous versions available, they will be displayed as shown in Figure C.
DSC0002.jpg
  Figure C: This is how a user would restore a previous version of a file
  To make the restoration, a user needs only to select the previous version and click Restore. The restored version will be in Read Only format though. The Read Only attribute is assigned as a way of protecting the file against unwanted changes. However, a user is free to remove this attribute (assuming that they have permissions) or to make a read / write copy of the file.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-218858-1-1.html 上篇帖子: Windows Server 2003 忘记密码的一个解决办法。 下篇帖子: Windows Server 2003 Enterprise Edition x86 (32位)微软官方原版
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表