Has Windows Server Backup’s Disk Space Management Changed in Server 2012

windows-server-2012windows-server-backup

Summary

I have a Server 2012 (not R2) Hyper-V Host server using Windows Server Backup (WSB) to back up about 670 GB of data to three 1 TB USB hard drives, rotated weekly. The server was installed July 2013 and has been happily backing up to the backup drives until about a month ago. Now the backups are failing because the backup drives are out of space.

Questions

  1. How do I configure the backup deletion policy introduced in Server 2012?
  2. What exactly, if anything, has changed in Server 2012's handling of old backups created with Windows Server Backup when the backup drive runs out of space?

Detail

Windows Server Backup is Supposed to Automatically Delete Old Backups

According to this blog post on Technet, Windows Server 2008 automatically deletes the oldest backup(s) on a destination backup drive when that drive runs out of free space:

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.

I manage a number of Server 2008/R2 servers and can attest by experience that this is true.

I reason that Server 2012 retains this feature by noting that this server with which I am having problems:

  1. Was deployed July 2013
  2. Has backed up to these same three backup drives without issue until now
  3. I've not deleted any backups and am the only administrator
  4. The oldest backups on any of the three drives are from February 2014.

Thus I reason, Server 2012 has been deleting old backups off of my backup drives, otherwise the oldest backups would date back to July 2013 when the server was deployed, not a more recent date as is actually the case.

Server 2012 Supposedly Introduces a Backup Deletion Policy

Doing my own research, I found this list of feature changes to Windows Server Backup which states that new in Server 2012:

If you are backing up to a hard disk or volume you can specify a deletion policy to determine whether backups should be deleted only when necessary to make space for additional backups or if they should be deleted after a certain number of backups have passed.

At minimum, this implies that WSB in Server 2012 is capable of deleting old backups to make room for new ones. Curiously that same source claims "Space and version management was not available" in previous versions of Windows.

So, first, how does one configure this deletion policy? Second, does anyone know if Server 2012's default behavior regarding deletion of old WSB backups has changed since Server 2008 R2?

Note: I'm not looking for assistance troubleshooting the reason why this server's behavior has changed since I intend to attack that problem by configuring the backup deletion policy. If the behavior doesn't go away after doing this, then I will invest the time in understanding why the backups suddenly stopped getting deleted.

Best Answer

That article you link is wrong. There is no way to specify the retention policy in Windows Server 2012 when backing up to external disks. I don't know why they lie like that... The configurable retention policy feature DOES, exist for the Windows Online Backup feature that you can use in Server 2012. Possibly this is where the confusion arises.

AFAIK backup disk space usage is the same in 2012 as in 2008 R2, which was also supposed to handle retention automatically, but didn't always work. When this occurred in 2008 R2 we would use the Diskshadow utility to manually trim VSS versions from the backup disk, which is what I'd advise you do here.

Use diskshadow to delete oldest VSS copy from Windows Server backup disk: http://www.bluecompute.co.uk/blogposts/windows-server-backup-manually-delete-snapshots/

EDIT: As Twisty points out, Diskshadow is not needed for this any more, you can use the new WBADMIN DELETE BACKUPS command