Flexible Hyper-V Backup Utility Since implementing support for 7-Zip it has added a whole load of additional possibilities to test for. This has created some difficulties for me, however I have been hard at work and have believe I’ve tackled the problem by introducing a formal testing process (and mostly automated it) in order to test some popular possible configs. You should be able to use any option that 7-zip supports, although currently the only options I’ve tested fully are ‘-t’ archive type, ‘-p’ password and ‘-v’ split files.
Flexible Hyper-V Backup Utility Just a small update to add the ability to use any 7-zip command line option with the utility. 2021-06-14: Version 21.06.14 Replaced -Sz* specific options with -SzOptions which will support any option that 7-zip supports. Hyper-V Backup Utility can be downloaded from: The Microsoft PowerShell Gallery GitHub See the full documentation available here. A demonstration video is available on my YouTube channel.
Flexible Hyper-V Backup Utility A bug fix update. When using archive types other than zip, the backup files were not being moved from the working directory to the final backup location. Thanks to @gabfot1 on Twitter for the bug report. 2021-06-02: Version 21.06.02 Fixed an error where file types which are not .zip were not being moved from the working directory to the final backup location. Hyper-V Backup Utility can be downloaded from:
Flexible Hyper-V Backup Utility Another substantial update. I’ve added the ability to support 7-Zip’s split file function and due to wanting to support for 7-Zip’s other file formats I’ve had to make the difficult decision to alter how the configuration switches are handled. This means that this updated script may not be a simple drop in replacement if you are using a previous version with 7-Zip features. The biggest change is that when using 7-Zip features you will need to add an additional hyphen ‘-’ to the configuration.
Flexible Hyper-V Backup Utility A substantial update in terms of changes made under the hood, but I’ve also added a few new options requested by users. The biggest change is that errors are now handled properly and reported to the user in a reliable manner. All the changes are summarized below. Version 20.07.13 Added -ShortDate option. This will create backups with only the Year, Month, Day as the file name.
Flexible Hyper-V Backup Utility Just a minor update to fix a non-critical issue with the previous version and to bring it in line with the recent update of the Image Factory Utility. 2020-02-28: Version 20.02.28 ‘Artifact’ Fixed e-mail report extra line breaks in Outlook 365, Version 2001. Config report matches design of Image Factory Utility. Improved and simplified code. Hyper-V Backup Utility can be downloaded from: The Microsoft PowerShell Gallery GitHub See the full documentation available here.
Flexible Hyper-V Backup Utility I’ve spent the past week away from home, and so I’ve been working on refactoring my Hyper-V Backup Utility and adding new features requested by users. Version 20.02.14 ‘Valentine’ Current known issues: The e-mail report has extra line breaks in Outlook 365, Version 2001. New features: Refactored code. Fully backwards compatible. Added option to use a working directory to stage backups before moving them to final backup location.
Download it from the Microsoft TechNet Gallery the PowerShell Gallery and GitHub. Today I’ve released a minor update to my Hyper-V Backup Utility. In version 4.4 I’ve added more feedback when the script is used interactively. Whether you are running Hyper-V on a Windows 10 desktop or a Windows Server 2016 cluster, this utility can be used to backup your virtual machines. My original post with the full documentation is available here.
Download it from the Microsoft TechNet Gallery the PowerShell Gallery and GitHub. Today I’ve released an update to my Hyper-V Backup Utility. In version 4.3 I’ve added the ability to specify the Hyper-V Virtual Machines you wish to backup using a TXT file. I’ve also improved some of the commenting and cleaned up some of the code. Whether you are running Hyper-V on a Windows 10 desktop or a Windows Server 2016 cluster, this utility can be used to backup your virtual machines.
Download it from the Microsoft TechNet Gallery the PowerShell Gallery and GitHub. Today I’ve released an update to my Hyper-V Backup Utility PowerShell script. Version 4.1 adds zip file creation and the ability to keep a history of Virtual Machine backups. These new features are included along with the ability to backup Virtual Machines using the built-in Hyper-V export function, meaning that the VMs do not need to be shutdown. However if the Hyper-V host lacks the permissions necessary to perform the export, it can be configured to shutdown the Virtual Machines and backup through a file-based copy operation.
Flexible Hyper-V Backup Utility Hyper-V Backup Utility can also be downloaded from: The Microsoft PowerShell Gallery GitHub A demonstration video is available on my YouTube channel. Please consider supporting my work: Sign up using Patreon. Support with a one-time payment using PayPal. If you’d like to contact me, please leave a comment, send me a tweet or DM, or you can join my Discord server. -Mike
UPDATE: This post is old and intended as a walk through on how my original script was put together for those wishing to learn PowerShell. For the finished, up-to-date script please check out this post and you can download the script from my TechNet profile. I previously posted a quick and dirty Hyper-V backup script that was very basic but did the job required at the time. I always wanted to revisit it and improve it.
I’ve replaced this script with a much more robust script that will backup each VM, including checkpoints/snapshots. You can find that post here and download the script from my TechNet profile. Let’s celebrate the holiday season with a quick PowerShell script to backup a Hyper-V server…or maybe you just need a quick and dirty, belt and braces backup script for your Hyper-V based VMs. It’s a small, quick script leveraging Hyper-V’s PowerShell module and some traditional command line utilities, like robocopy.