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

[经验分享] Backup Version and Space Management in Windows Server Backup

[复制链接]

尚未签到

发表于 2018-6-23 14:18:37 | 显示全部楼层 |阅读模式
  This article answers following questions>  Q1. How does Windows Server Backup store backups and maintain backup versions?
  Q2. How do I query backup stored versions on a backup storage location?
  Q3. How do I delete non system state backups created using Windows Server Backup?
  Q4. How do I delete system state backups created using Windows Server Backup?
  Overview
  ·Windows Server Backup is the built-in backup solution in Windows Server 2008 and Windows Server 2008 R2. Using Windows Server Backup, an administrator can schedule periodic backups of a server and also create backups on demand. For details on using Windows Server Backup, please see the Installed Help for Windows Server 2008 (http://technet.microsoft.com/en-us/library/cc770757(WS.10).aspx) and for Windows Server 2008 R2 (http://technet.microsoft.com/en-us/library/cc770757.aspx).
  ·Windows Server Backup in Windows Server 2008 allows administrators to back up entire volumes. More flexibility is available in Windows Server 2008 R2 where administrators can pick and choose individual files and folders to be included in a backup. The technology used by Windows Server Backup to perform a backup differs based on the nature of the backup:
  oIf you back up an entire volume, Windows Server Backup creates a block-level backup that reads directly from the volume by passing the file system.
  oIf you back up just specific files and folders, Windows Server Backup reads individual files going through the file system.
  ·Windows Server Backup stores backups at the following path: <BackupStorageLocation>\WindowsImageBackup\<ComputerName>\. A back up operation performs following steps:
  1.Windows Server Backup reads data from source volumes and then creates a .vhd file per source volume on the backup storage location and writes the backup metadata.
  2.Windows Server Backup stores backup versions in volume shadow copies. After the data write is complete, Windows Server Backup creates a shadow copy of the volume where the backup is stored using Volume Shadow Copy Service (VSS). This shadow copy retains the state of the storage volume as a “backup version” or “point-in-time” of the backup and must restore using this backup version. VSS is the underlying Microsoft technology required for maintaining backup versions. (For more information about VSS, see http://technet.microsoft.com/en-us/library/cc785914.aspx.)
  3.After creating the shadow copy, Windows Server Backup updates the backup catalog which is stored on both the system volume of the server that is being backed up and the backup storage folder with the following information:
  §The backup time  The local system time of the server when the backup operation started.

  §The shadow copy>
  §Version>Wbadmin and the Windows PowerShell cmdlets for Windows Server Backup) will specify the version>  ·If the backup storage location is full, Windows Server Backup automatically deletes the oldest backup version to make space for the current backup. Since each backup is stored inside a shadow copy, deleting a backup version is accomplished by simply deleting the corresponding shadow copy. However, space for a system state backup in Windows Server 2008 is not automatically managed by Windows Server Backup. See the section “How to Delete System State Backups” below for managing system state backups in Windows Server 2008.
  ·Windows Server Backup can store only one backup version on a network share (remote shared folder). You can store backups from multiple computers to a network share. A backup from a computer to a network share will be saved at: \\<RemoteServer>\<SharedFolderPath>\WindowsImageBackup\<ComputerBackedUp>. To delete the backup on network share, you need to delete the <ComputerBackedUp> directory from network share.

  ·Windows Server Backup uses the .vhd format for writing backups. The current virtual hard disk specification limits the>  How to Query Backup Versions
  To see the backup versions present in a particular computer, use the Wbadmin get versions command. Note that, to use the Wbadmin command, you must be a member of the Administrators group or Backup Operators group and must open an elevated instance Cmd.exe (click Start, right-click Command Prompt, and then clickRun as administrator). For detailed Wbadmin command documentation, see:http://technet.microsoft.com/en-us/library/cc754015.aspx.
  Sample output of Wbadmin get versions command:
  wbadmin 1.0 - Backup command-line tool
  (C) Copyright 2004 Microsoft Corp.
  
  Backup time: 3/12/2009 10:55 AM
  Backup target: Fixed Disk labeled New Volume(I:)
  Version>
  Can recover: Volume(s), File(s)
  Snapshot>
  

  Snapshot> in the above output is new in Windows Server 2008 R2. Snapshot>  
  To view all backup versions on a particular backup storage location, type:
  Wbadmin get versions -backupTarget:<BackupStorageLocation:>
  For example, if you want to view all the backup versions on the backup storage location K:, type:
  Wbadmin get versions –backupTarget:K:

  In the output of Wbadmin get versions command, Backup time is the local system time and Version> is the GMT time at the time the backup was created. If you change your system time zone, the value for Backup time will also change. Note that Version> is a unique>  How to Delete Non-System State Backups
  Windows Server Backup deletes a backup by just deleting the corresponding shadow copy and updating the backup catalog. You can perform the same steps manually to delete backups on demand. However, the backup catalog update cannot be done manually and it will happen instead during the next backup. In short, to delete a backup version manually, you need to delete the corresponding shadow copy from the backup storage location.
  To delete a shadow copy, follow these general steps:
  1.Identify the backup version you want to delete by querying the backup versions on your backup storage location.

  2.Determine the shadow copy>  3.Delete the shadow copy.
  Identify the backup version:
  To list all the shadow copies on a volume, use the Vssadmin command. (For the complete syntax forVssadmin, see: http://technet.microsoft.com/en-us/library/cc754968(WS.10).aspx.) The following command line lists all shadow copies on a specified backup storage location:
  Vssadmin list shadows /for=<BackupTarget>
  For example, to list the shadow copies on the location Y, type:
  Vssadmin list shadows /for=Y:
  Determine the shadow copy>:
  On Windows Server 2008 R2, the shadow copy>Vssadmin list shadows /for=<Backup Target>
. Match the shadow copy creation time with your backup’sBackup time value.
  Delete the Shadow Copy for the specific Shadow Copy>:
  1.To open a command prompt with elevated privileges, click Start, right-click Command Prompt, and then click Run as administrator. Then type:
  DiskShadow.exe
  2.Type:
  Delete shadows>Shadow Copy>>
  3.To exit DiskShadow type:
  Exit
  To delete the oldest shadow copy on backup storage location, type the following command in step 2 above:
  Delete shadows OLDEST <BackupStorageLocation>
  For example, if your storage location is volume G:, type:
  Delete shadows OLDEST G:
  If you have scheduled backups to dedicated disks, Windows Server Backup doesn’t assign a drive letter to the backup storage location to avoid any accidental data write or loss of backups. In that case, you can use the GUID of the backup storage volume to delete the oldest shadow copy. You can get volume GUIDs for all volumes on your system by using the Mountvol command. If your scheduled backup storage location is a dedicated disk, it will be reported with No Mount Points in the output of Mountvol. The volume GUID is in {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} format.
  Then, to delete the oldest shadow copy on that volume, type:
  Delete shadows OLDEST \\?\Volume{GUID}
  For example, for a volume GUID of 7fc1871b-2e1f-11dd-a339-001e4fb7af35, type:
  Delete shadows OLDEST \\?\Volume{7fc1871b-2e1f-11dd-a339-001e4fb7af35}
  How to Delete System State Backups
  In Windows Server 2008, each system state backup  is a full backup and is stored in a separate directory, consuming the space needed for a full backup every time. New in Windows Server 2008 R2 system state backups are incremental and use VSS shadow copies for creating different versions of the backup.
  There are three ways to delete system state backups:
  oDelete a specified version of system state backup
  oExample: Delete the version that was taken on Tuesday evening with a version>06/02/2009-18:25.

  §In an elevated command prompt, query backup versions and>06/02/2009-18:25.

  §Then, type: Wbadmin delete systemstatebackup –version:06/02/2009-18:25
  oDelete the oldest version on a backup storage location
  oExample: Delete the oldest version on backup target G:\
  §In an elevated command prompt type: Wbadmin delete systemstatebackup –backupTarget:G: –deleteOldest
  oDelete all backups except the latest N versions on a backup storage location.
  oIn an elevated command prompt type: Wbadmin delete systemstatebackup -keepversions:N
  Refence to:
  http://blogs.technet.com/b/filecab/archive/2009/06/22/backup-version-and-space-management-in-windows-server-backup.aspx

运维网声明 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-529682-1-1.html 上篇帖子: linux与windows共享文件夹互相copy文件 下篇帖子: Windows Server Backup初识
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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