Solved

backup of VHDs remotely

Posted on 2011-09-24
4
302 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 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

The next five years are sure to bring developments that are just astonishing, and we will continue to try to find the balance between connectivity and security. Here are five major technological developments from the last five years and some predict…
In the wake of AWS' S3 outage, we want to discuss the importance of storage and data diversification in the event of a hack, crash, or system disruption. We spoke with Experts Exchange’s COO Gene Richardson for a deeper understanding.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

856 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