{"id":552,"date":"2015-08-26T04:52:51","date_gmt":"2015-08-26T04:52:51","guid":{"rendered":"http:\/\/www.itcrumbs.com\/?p=552"},"modified":"2019-02-07T04:38:48","modified_gmt":"2019-02-07T04:38:48","slug":"backup-version-and-space-management-in-windows-server-backup","status":"publish","type":"post","link":"https:\/\/www.itcrumbs.com\/?p=552","title":{"rendered":"Backup Version and Space Management in Windows Server Backup"},"content":{"rendered":"<p><a title=\"http:\/\/blogs.technet.com\/b\/filecab\/archive\/2009\/06\/22\/backup-version-and-space-management-in-windows-server-backup.aspx\" href=\"http:\/\/blogs.technet.com\/b\/filecab\/archive\/2009\/06\/22\/backup-version-and-space-management-in-windows-server-backup.aspx\">http:\/\/blogs.technet.com\/b\/filecab\/archive\/2009\/06\/22\/backup-version-and-space-management-in-windows-server-backup.aspx<\/a><\/p>\n<p>&#160;<\/p>\n<p>Q1. How does Windows Server Backup store backups and maintain backup versions?    <br \/>Q2. How do I query backup stored versions on a backup storage location?    <br \/>Q3. How do I delete non system state backups created using Windows Server Backup?    <br \/>Q4. How do I delete system state backups created using Windows Server Backup?<\/p>\n<p><b><u>Overview<\/u><\/b><\/p>\n<p>\u00b7 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 (<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc770757(WS.10).aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/cc770757(WS.10).aspx<\/a>) and for Windows Server 2008 R2 (<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc770757.aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/cc770757.aspx<\/a>).<\/p>\n<p>\u00b7 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: <\/p>\n<p>o If 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. <\/p>\n<p>o If you back up just specific files and folders, Windows Server Backup reads individual files going through the file system.<\/p>\n<p>\u00b7 Windows Server Backup stores backups at the following path: &lt;<i>BackupStorageLocation<\/i>&gt;\\WindowsImageBackup\\&lt;<i>ComputerName<\/i>&gt;\\. A back up operation performs following steps:<\/p>\n<p>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.<\/p>\n<p>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 \u201cbackup version\u201d or \u201cpoint-in-time\u201d 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 <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc785914.aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/cc785914.aspx<\/a>.)<\/p>\n<p>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:<\/p>\n<p>\u00a7 The backup time \u2212 The local system time of the server when the backup operation started.<\/p>\n<p>\u00a7 The shadow copy identifier (Shadow Copy ID) \u2212 Used by Windows Server Backup to associate the backup version to the correct shadow copy.<\/p>\n<p>\u00a7 Version identifier \u2212 Used by Windows Server Backup to uniquely identify a backup version. Users using command line tools (<b>Wbadmin<\/b> and the Windows PowerShell cmdlets for Windows Server Backup) will specify the version identifier as a parameter to the command to work with a backup version.<\/p>\n<p>\u00b7 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 \u201cHow to Delete System State Backups\u201d below for managing system state backups in Windows Server 2008.<\/p>\n<p>\u00b7 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: \\\\&lt;<i>RemoteServer<\/i>&gt;\\&lt;<i>SharedFolderPath<\/i>&gt;\\<b>WindowsImageBackup<\/b>\\&lt;<i>ComputerBackedUp<\/i>&gt;. To delete the backup on network share, you need to delete the &lt;<i>ComputerBackedUp<\/i>&gt; directory from network share.<\/p>\n<p>\u00b7 Windows Server Backup uses the .vhd format for writing backups. The current virtual hard disk specification limits the size of a virtual hard disk to be 2040 GB, which can fit a volume of size 2040 GB \u2013 2 MB, (i.e., 2088958 MB). Windows Server Backup in Windows Server 2008 also limits the maximum source volume size to be 2088958 MB. In Windows Server 2008 R2, if you are not backing up a full volume and, instead, creating a backup of selected files\/folders, your source volume size can be more than 2088958 MB, provided your actual data size is less than equal to 2088958 MB. If you are creating a full volume backup, the maximum source volume size limit continues to be 2088958 MB.<\/p>\n<p><b><u><\/u><\/b><\/p>\n<p><b><u>How to Query Backup Versions <\/u><\/b><\/p>\n<p>To see the backup versions present in a particular computer, use the <b>Wbadmin get versions<\/b> command. Note that, to use the <b>Wbadmin<\/b> command, you must be a member of the Administrators group or Backup Operators group and must open an elevated instance Cmd.exe (click <b>Start<\/b>, right-click <b>Command Prompt<\/b>, and then click <b>Run as administrator)<\/b>. For detailed <b>Wbadmin<\/b> command documentation, see: <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc754015.aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/cc754015.aspx<\/a>.<\/p>\n<p>Sample output of <b>Wbadmin get versions<\/b> command:<\/p>\n<blockquote>\n<p><b>wbadmin 1.0 &#8211; Backup command-line tool<\/b><\/p>\n<p><b>(C) Copyright 2004 Microsoft Corp.<\/b><\/p>\n<p><b><\/b><\/p>\n<p><b>Backup time: 3\/12\/2009 10:55 AM<\/b><\/p>\n<p><b>Backup target: Fixed Disk labeled New Volume(I:)<\/b><\/p>\n<p><b>Version identifier: 03\/12\/2009-05:25<\/b><\/p>\n<p><b>Can recover: Volume(s), File(s)<\/b><\/p>\n<p><b>Snapshot ID: {f5e946da-5cc7-44c3-a747-9f1079e639b0}<\/b><\/p>\n<p><b><\/b><\/p>\n<\/blockquote>\n<p><b>Snapshot ID<\/b> in the above output is new in Windows Server 2008 R2. Snapshot ID is same as Shadow Copy ID. It corresponds to a specific backup version and can be used to delete that backup version.<\/p>\n<p><b><\/b><\/p>\n<p>To view all backup versions on a particular backup storage location, type: <\/p>\n<p><b>Wbadmin get versions -backupTarget:<\/b>&lt;<i>BackupStorageLocation:<\/i>&gt; <\/p>\n<p>For example, if you want to view all the backup versions on the backup storage location K:, type:<\/p>\n<p><b>Wbadmin get versions \u2013backupTarget:K:<\/b><\/p>\n<p>In the output of <b>Wbadmin get versions<\/b> command, <b>Backup time<\/b> is the local system time and <b>Version Identifier<\/b> is the GMT time at the time the backup was created. If you change your system time zone, the value for <b>Backup time<\/b> will also change. Note that <b>Version Identifier<\/b> is a unique identifier for a given backup version and remains constant for a backup. <\/p>\n<p><b><u>How to Delete Non-System State Backups<\/u><\/b><\/p>\n<p>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.<\/p>\n<p>To delete a shadow copy, follow these general steps:<\/p>\n<p>1. Identify the backup version you want to delete by querying the backup versions on your backup storage location. <\/p>\n<p>2. Determine the shadow copy ID of the version you want to delete. <\/p>\n<p>3. Delete the shadow copy.<\/p>\n<p><b><u>Identify the backup version<\/u><\/b>:<\/p>\n<p>To list all the shadow copies on a volume, use the <b>Vssadmin<\/b> command. (For the complete syntax for <b>Vssadmin<\/b>, see: <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc754968(WS.10).aspx.)\">http:\/\/technet.microsoft.com\/en-us\/library\/cc754968(WS.10).aspx.)<\/a> The following command line lists all shadow copies on a specified backup storage location:<\/p>\n<p><b>Vssadmin list shadows \/for=&lt;BackupTarget&gt;<\/b><\/p>\n<p>For example, to list the shadow copies on the location Y, type:<\/p>\n<p><b>Vssadmin list shadows \/for=Y:<\/b><\/p>\n<p><b><u>Determine the shadow copy ID<\/u><\/b>:<\/p>\n<p>On Windows Server 2008 R2, the shadow copy ID is same as Snapshot ID given in the output of querying backups. On Windows Server 2008, you can find your backup\u2019s shadow copy ID by looking at output of <b>Vssadmin list shadows \/for=&lt;Backup Target&gt;<\/b>. Match the shadow copy creation time with your backup\u2019s <b>Backup time<\/b> value.<\/p>\n<p><b><u>Delete the Shadow Copy for the specific Shadow Copy ID<\/u><\/b><b>:<\/b><\/p>\n<p>1. To open a command prompt with elevated privileges, click <strong>Start<\/strong>, right-click <strong>Command Prompt<\/strong>, and then click <strong>Run as administrator. <\/strong>Then type: <\/p>\n<p><b>DiskShadow.exe <\/b><\/p>\n<p>2. Type: <\/p>\n<p><b>Delete shadows ID &lt;<i>Shadow Copy ID<\/i>&gt;<\/b><\/p>\n<p>3. To exit DiskShadow type: <\/p>\n<p><b>Exit<\/b><\/p>\n<p>To delete the oldest shadow copy on backup storage location, type the following command in step 2 above:<\/p>\n<p><b>Delete shadows OLDEST &lt;BackupStorageLocation&gt; <\/b><\/p>\n<p>For example, if your storage location is volume G:, type:<\/p>\n<p><b>Delete shadows OLDEST G:<\/b><\/p>\n<p>If you have scheduled backups to dedicated disks, Windows Server Backup doesn\u2019t 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 <b>Mountvol <\/b>command. If your scheduled backup storage location is a dedicated disk, it will be reported with <b>No Mount Points<\/b> in the output of <b>Mountvol<\/b>. The volume GUID is in {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} format.<\/p>\n<p>Then, to delete the oldest shadow copy on that volume, type:<\/p>\n<p><b>Delete shadows OLDEST \\\\?\\Volume{GUID}<\/b><\/p>\n<p>For example, for a volume GUID of 7fc1871b-2e1f-11dd-a339-001e4fb7af35, type:<\/p>\n<p><b>Delete shadows OLDEST <\/b><b>\\\\?\\Volume{7fc1871b-2e1f-11dd-a339-001e4fb7af35}<\/b><b><\/b><\/p>\n<p><b><u>How to Delete System State Backups<\/u><\/b><\/p>\n<p>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.<\/p>\n<p>There are three ways to delete system state backups:<\/p>\n<p>o Delete a specified version of system state backup<\/p>\n<p>o Example: Delete the version that was taken on Tuesday evening with a version identifier of <b>06\/02\/2009-18:25.<\/b><\/p>\n<p>\u00a7 In an elevated command prompt, query backup versions and identify the backup created on Tuesday with the version identifier of <b>06\/02\/2009-18:25.<\/b><\/p>\n<p>\u00a7 Then, type: <b>Wbadmin delete systemstatebackup \u2013version:<\/b><b> 06\/02\/2009-18:25<\/b><\/p>\n<p>o Delete the oldest version on a backup storage location<\/p>\n<p>o Example: Delete the oldest version on backup target G:\\<\/p>\n<p>\u00a7 In an elevated command prompt type: <b>Wbadmin delete systemstatebackup \u2013backupTarget:G: \u2013deleteOldest<\/b><\/p>\n<p>o Delete all backups except the latest N versions on a backup storage location.<\/p>\n<p>o In an elevated command prompt type: <b>Wbadmin delete systemstatebackup -keepversions:N<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/blogs.technet.com\/b\/filecab\/archive\/2009\/06\/22\/backup-version-and-space-management-in-windows-server-backup.aspx &#160; 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 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552"}],"version-history":[{"count":1,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":553,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions\/553"}],"wp:attachment":[{"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itcrumbs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}