Hyper-V Offline backup script

I have created yet another backup script, since the previous one although correct worked only under VMM 2008. And VMM 2008 in its current BETA (+hyper-v patch) is still a bit unstable and the script caused the host to hang for large VM backups.

The script I created is a script that saves, exports VMs (and then starts if VM was running prior to starting the script) to a target local folder. Additionally in the batch file you can add a robocopy command to copy that to a remote location if you need.

The script works currently only locally (though with psexec it should be able to modify it to run remotely as some commands are local folder/file operations) and requires powershell.

Another script I found on the internet is available here: http://mindre.net/file.axd?file=CreateVmBackups.ps1. Unfortunately this was AFTER I worked on mine;)

A ps1 and batch file to launch it are attached.

Attachment(s): BackupVMsHyper-V.zip


~ by alipka on July 8, 2008.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: