The following covers how to backup and restore using Hyper-V import and export functions, as well as how to create and restore using a checkpoint.
Backup and Restore with Export and Import functions
Hyper-V offers a function to export a virtual machine to disk. This export includes snapshots, Virtual Hard Disks, and the virtual machine itself. You can restore all of the data with the import functionality. For more information about the export and import functions, refer to the following Microsoft documentation:
The following sections provide instructions for creating and restoring a checkpoint.
A snapshot is not a full backup. It only saves the difference (delta) of your VM between two timestamps.
Attention!
Note that a checkpoint will not help if the server becomes corrupted and the VM is deleted.
Backup with a Checkpoint
Before you begin, ensure that the virtual machine you want to create a checkpoint is powered off.
To create a checkpoint:
Open the Microsoft Windows Admin Center, Server Manager
Choose Virtual machines from the Tools menu and mark the checkbox of your VM in the list. Make sure the selected machine is powered off, otherwise you cannot create a checkpoint.
Select the Inventory tab, click Manage and choose New checkpoint.A form opens: New virtual machine checkpoint
Define a checkpoint name, or leave the field blank so the current date and time are used as checkpoint name.
Confirm by clicking the Create checkpoint button.
A pop-up message validates the process.
Restore from a Checkpoint
Open the Microsoft Windows Admin Center, Server Manager
Choose Virtual machines from the Tools menu and mark the checkbox of your VM in the list.
Click on your VM and a new screen opens.
Scroll down to Checkpoints to view the list of created checkpoints.
Mark the Checkpoint you want to use to restore.
Click on Apply in the tab above.
For further information, refer to the Microsoft documentation on Checkpoint-VM.