Real World Solutions
Here are a few problems and solutions that you might encounter when using Windows Server 2012 Hyper-V.
Using WSB to Back up a Hyper-V Host and Retain Backup Data
Challenge
You have deployed a Windows Server 2012 Hyper-V and a number of virtual machines. You need to use WSB to back up the virtual machines to a file share and retain backup data for seven days. How can this be done?
Solution
The following script will create a temporary backup policy to back up all of the virtual machines on the local host to a file share. The script will then start to manage the backup data. It will detect what day of the week it is. If it finds an existing backup from the previous week, it will erase it. Then it will take the current backup ...
Get Windows Server 2012 Hyper-V Installation and Configuration Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.