Solved

backup of VHDs remotely

Posted on 2011-09-24
4
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
RK earned 250 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 21

Expert Comment

by:RK
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 250 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
Do you know what to look for when considering cloud computing? Should you hire someone or try to do it yourself? I'll be covering these questions and looking at the best options for you and your business.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
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…

749 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