[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

backup of VHDs remotely

Posted on 2011-09-24
4
Medium Priority
?
318 Views
Last Modified: 2012-05-12
We have several VHDs running via Hyper V.

I have heard it's possible to snapshot each every 30 minutes remotely and in the event of disaster (fire) we would be able to mount the VHD on it's remote location, restore the snapshots and only lose 30 minutes worth of work.

How is this accomplished?  What software will we need?
0
Comment
Question by:calljk
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
Radhakrishnan R earned 1000 total points
ID: 36592748
Hi Callik,

Already the same solutions available in EE. Please have a look http://www.experts-exchange.com/Storage/Backup_Restore/Backup_Exec/Q_24174670.html

Hope this helps.
0
 

Author Comment

by:calljk
ID: 36592863
it seems backup excec is a potential software solution, however i'm curious about the remote offsite solutions available and the details behind that.

maybe i'll contact Backup Exec and talk to their sales department
0
 
LVL 23

Expert Comment

by:Radhakrishnan R
ID: 36595348
That's great..Yes, You can contact symantec for backup exec license and installation.
0
 
LVL 9

Assisted Solution

by:jan-janssen
jan-janssen earned 1000 total points
ID: 36905562
The solution is quite simple, a friend of mine wrote a power shell script to do this:

Power Shell Code: (new-backup-multi.PS1)

Set-ExecutionPolicy unrestricted -force
import-module "C:\Program Files\HyperV_Powershell\hyperv.psd1"
Remove-Item D:\VM-Backup-Script\copy.txt
$arrComps = "Server1", "Server2", "Server3"
Start-Transcript D:\VM-Backup-Script\copy.txt
foreach ($arrComps in $arrComps)
{
invoke-vmshutdown $arrComps -force
new-vmsnapshot $arrComps -force -waitstart-sleep -s 30
Start-VM $arrComps -HeartBeatTimeOut 300

$date = Get-Date -format yyyy-MM-dd
New-Item \\phys-hvb\d$\VM-Drives\$date -type directory -force
Copy-Item D:\VM-Drives\$arrComps\*.vhd \\Remote-Server\d$\VM-Drives\$date\
select-vmsnapshot $arrComps | remove-vmsnapshot -wait -tree -force
invoke-vmshutdown $arrComps -force
start-sleep -s 90
Start-VM $arrComps -HeartBeatTimeOut 300
}
Stop-Transcript

$fileData = (Get-Content "D:\VM-Backup-Script\copy.txt" | out-string)
$file = "D:\VM-Backup-Script\copy.txt"
$smtpServer = "your SMTP relay Server"
$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment($file)
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$msg.From = "Your-Server@mail.com"
$msg.To.Add("Recipient@mail.com")
$msg.Subject = "Hyper-V Backup Results"
$msg.Body = $fileData
$msg.Attachments.Add($att)
$smtp.Send($msg)
$att.Dispose()

Open in new window


If you should have any further questions feel free to ask, or if you need modification of the script offered.

Full discussion can be found at http://pshyperv.codeplex.com/discussions/232359 
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question