By Alison / Last Updated April 28, 2022

Case: Best practices for Hyper-V backups

My question is regarding best/easiest/cheapest ways to backup what I've got. Main concern is backing up of the Guest as it is the one that runs all the services and holds the data. The host is only the host with nothing else on it (but would be nice to have it backed up too if possible). Having mentioned that I am looking for the cheapest option I must add that in fact I'd prefer FREE (if possible).

——spiceworks.com

Microsoft Hyper-V is a free, enterprise-class Type 1 (bare-metal) hypervisor, that allows you to create and run virtual machines on a single hardware, maximizing the use of hardware resources to provide secure sandbox environments for development and testing.

In order to ensure disaster recovery from accidental loss, we need to implement a good and appropriate backup strategy. Before developing your own backup strategy, you probably have the same question, what are the Hyper-V backup best practices?

In this article I will introduce 10 Tips, 1 most commonly used native tool, and 1 dedicated backup tool for Hyper-V backup.

MS Hyper-V logo

10 tips for Hyper-V backup best practices

In this section, I sum up 10 tips you need to know when Hyper-V backup virtual machines. The first three are the preparation before backup, the next four are the considerations when backing up, and the last three are the maintenance work after backup.

1. Update: Keep Hyper-V and backup software up to date

Windows regularly adds extensions and bug fixes to Hyper-V, many are related to Hyper-V Integration Services. To make sure you have all the latest Microsoft bug fixes and interoperability fixes, you better check that you have applied all Windows updates before backing up.

2. Services: Enable and update Hyper-V integration services

Hyper-V Integration Services are services that allow virtual machines to communicate with Hyper-V hosts. It works in coordination with VSS services to stop virtual machines and refresh data correctly during the backup run, allowing backups of the guest operating system to be in a consistent state. It is shipped in Windows OS by default, but you still need to keep it up to date.

3. Resources: Prepare enough disk space, CPU, and RAM

Virtual machine backups can be very large and take up disk space. Ensuring that you have reserved enough free disk space, and providing enough CPU and RAM for backups, can avoid failures due to lack of space, increase backup speed.

4. Type: Choose host-level backup instead of guest-level backup

There are 2 types of Hyper-V VM backups: host-level backup and guest-level backup.

Guest-level backup is a method of backing up VMs as if they were physical machines by installing agents on each VM, and is not capable of backing up the virtual environment and configurations.

Host-level backup is a method of backing up virtual machines at the hypervisor level, allowing a complete backup of the entire virtual disk, and the configuration files that store the CPU, memory, network, and other settings. It is the preferred type for Hyper-V backup virtual machines.

5. Checkpoint: Checkpoint cannot replace backup

Checkpoint, also known as snapshots, is a fast and effective way to roll back a VM to the point in time when the checkpoint was taken. It can be used as a temporary, short-term means of VM data protection.

Checkpoint vs backup: Checkpoint cannot replace backup, for it depends on the parent disk, if the parent disk is deleted, Checkpoint itself is not sufficient for VM restore. Moreover, the incremental disk files created after creating a checkpoint can grow large and take up disk space, thus affecting the VM performance.

Hyper-V checkpoint

6. Options: Application-aware mode, forever-incremental backup with RCT, compression and encryption

Application-aware mode relies on VSS to create application-consistent VM backups, providing additional checks during the backup preparation phase, to ensure the correct state of the application (for example, SQL Server, Exchange Server, or Active Directory) is put into the backup.

Forever-incremental backup with Resilient Change Tracking (RCT) allows backup vendors to make use of this native feature for capturing only the changes since the last backup. It can improve the efficiency of copying data, make backup process faster and take up less space.

Besides, if you want to save space and the time for moving backups, you can also consider compressing backups at a certain level. And when you store backups offsite, please always remember to encrypt your backups in order to avoid leaking important data.

7. Schedule: Regular backup and deletion

In practice, the data on your VMs is updated all the time, and you may need to back up more than one VM. Schedule regular Hyper-V VM backups is the best insurance against accidental loss of up-to-date data.

How often to perform full backups, whether you need incremental backups, when taking backups that do not conflict with other schedules, how long backups need to be kept, etc. are all issues to consider. Besides, it is also necessary to delete old backups regularly to ensure good use of disk space.

8. Storage: Keep 3 copies on 2 types of media with 1 offsite

Usually, if you only have one backup, you may not be able to restore VM in time once it corrupted, and you may even lose important data. Therefore, it is recommended that you follow the 3-2-1 principle to keep enough backup copies.

3—Keep 3 copies of data: one original and two backups

2—Store backups on 2 types of media: local server and cloud service (better encrypted)

1—Keep at least 1 backup offsite

9. Verify: Regularly test backup availability

It is also important to regularly test the availability of your backups after they are completed. This prevents data loss due to backup corruption or failure when needed, ensures immediate restore of your VMs, and maintains business continuity.

10. Restore: Distinguish different VM backups

After completing the backup of your Hyper-V virtual machines, remember to differentiate between the different backups to avoid errors during Hyper-V VM restore.

The most common built-in way to backup Hyper-V virtual machines

There are mainly 3 native Microsoft Hyper-V backup solutions:

Manually copying VM folder: Copying VM folder is enough to recreate VMs, but you cannot restore directly to Hyper-V, instead you need to create new VMs and then attach VHD files. Considering the convenience, I don't think this is the best way to backup Hyper-V VMs for free.

Export and import feature: The export and import feature can also serve the purpose of backing up virtual machines. However, it does not provide basic features such as deduplication, compression, encryption, etc., so it is not considered as a perfect backup method either.

Windows Server Backup: Windows Server Backup is a built-in feature from Windows Server 2008 that provides backup and recovery options for Windows server environments. In addition to backup once, you can use it to schedule automatic backups while a VM is running, or store backup to remote shared folder. It is an ideal way for users running a small number of VMs and small to medium-sized companies. However, it still has the disadvantage of not being able to monitor backup progress and verify backup consistency.

If you want to purchase a backup product with better functionality, consider System Center Data Protection Manager (DPM), or third-party software.

You can refer to this article: Back up Hyper-V virtual machines - DPM - Microsoft Docs

How to use Windows Server Backup for Hyper-V

✦ Add Windows Server Backup from Server Manager:

1. Launch Server Manager. Click Manage and select Add Roles and Features. Click Next on the wizard.

Add roles and features

2. Select Role-based or feature-based installation as the Installation Type. Click Next.

3. Select the Server from the server pool. And click Next on Server Roles page.

4. On Features page, find and check Windows Server Backup in Features list. Click Next to install.

Install Windows Server Backup

✦ Using Windows Server Backup to backup Hyper-V VMs:

5. Back to Server Manager. Click Tools and select Windows Server Backup.

6. As you can see, you can choose Backup Schedule, Backup Once, and Recover in Actions menu. Here we click Backup Once for demonstration.

7. In pop-up Backup Once Wizard, select Different options and click Next.

Backup options

8. In Select Backup Configuration page, if you want to choose a specific folder or files, select Custom and then click Next.

Select backup configuration

9. Click Add items to select the Hyper-V VM you want to back up.

Add items

10. Specify the Destination Type and click Next. As you can see, you can choose backup to local drive or network share.

Specify destination type

11. Select the Destination location and click Next.

Specify destination location

12. Confirm the settings and click Backup to start.

Use a dedicated backup tool to perform Hyper-V VM backup

In the previous section I described how to use the native tool Windows Server Backup to backup Hyper-V VMs. As you can see, although easier than manually copying the VM folder, WSB still has the disadvantage of being complicated to operate and not capable of monitoring the backup status.

Therefore, next I will describe how to use a dedicated backup tool to perform Hyper-V backup more easily and quickly. Here I recommend you AOMEI Cyber Backup for the following benefits:

Simple Backup Steps: with 2 simple steps you can create complete backup tasks of multiple VMs, with automatic execution and deletion of old backups that exceed the specified retention period.
Separate Task Management: created backup tasks will be listed and monitored separately, for checking progress, edit task settings, and view status.
Clear Log Monitor: clearly recording all operations made to the VMs with separate error logs for easy reference and troubleshooting.
Convenient Offsite Restore: capable of restoring backups to new VMs on original or another datastore, host.
Reasonable Role Assignment: allows one administrator to create sub-accounts with limited privileges, effectively avoid errors caused by others’ mis-operations.
Affordable Pricing: reasonable charges only base on the number of bound devices, regardless of how many VMs are on the host.

Next, I will demonstrate how to backup and restore multiple Hyper-V VMs.

AOMEI Cyber Backup supports Windows Server 2012 and all later versions, VMware ESXi 6.0 and all later versions. If you are using one of these versions, you can click the below button to start a free trial.

Download Free TrialWindows Server 2012 & later versions
Secure Download

How to backup Hyper-V VMs using AOMEI Cyber Backups

1. Bind Devices: Access AOMEI Cyber Backup web client and navigate to Source Device > Hyper-V > + Add Hyper-V to add a Hyper-V host. Click next to the host name and select Bind Device.

Add Hyper-V host

2. Create Backup Tasks: Navigate to Backup Task and click + Create New Task. Specify Task Name, Backup Type, Device, Target, Schedule, and Backup Cleanup as needed.

Create a Hyper-V backup task

  • Device: AOMEI Cyber Backup allows you to backup multiple, or even all VMs on the host at once.
  • Target: You can select to back up to a local path, or to a network path. Used paths will be saved in Favorite Storage for handy selection.

Select a target

  • Schedule: You can choose to perform full or incremental backup, and automate execution daily, weekly or monthly according to the frequency you specified.

Set up a backup schedule

  • Cleanup: You can specify a retention period, and the old backup files that exceed the period will be automatically deleted.

Backup Cleanup

Click Start Backup you can select to Add the schedule only, or Add the schedule and start backup now.

Start Backup

3. Restore VMs: Navigate to Backup Management > History Versions and select the VM you want to restore, all restore points related to the VM will be listed on the left.

Restore from history versions

Select one and click > Restore to open the restore wizard. Specify to Restore to original location or Restore to new location.

  • Restore to new location: You can choose to restore the backup to new VM on original or another datastore, host, and reset the RAM and Vital Processor.

Click Start Restore.

Restore to new location

Summary

Implementing a good and proper Hyper-V backup strategy can ensure timely disaster recovery and data security, maintains business continuity. In this article, I summarized 10 Tips, introduced 1 common native tool and 1 dedicated backup tool for Hyper-V backup virtual machines. Hope it could be helpful to you.