HyperVBackup is a PowerShell module that allows users to backup VMs from a Hyper-V host.
HyperVBackup is a PowerShell module that allows users to backup VMs from a Hyper-V host. The module backups can be stored in a directory or compressed to a .7z file.
Using the parameter -Retention the user can evaluate the age of the backups each time the cmdlet is executed and delete old backups if necessary.
The module is published in the PowerShell Gallery.
Run the following in an elevated prompt:
Install-Module -Name HyperVBackup
Get-VM | Backup-VM -Destination - 'D:\Backup\Hyper-V'
Remove-VMBackup -Destination 'D:\Backup\Hyper-V'