Sie sind auf Seite 1von 4

1/19/13

Share 0

Tech Interview Questions 4 all...: Windows Server 2008 Hyper-V Backup


More Next Blog Create Blog Sign In

Tech Interview Questions 4 all...


This is Blog is created to excel our knowledge in Windows 2003 and 2008, Active Directory, and Exchange Server,and more...
WEDNESDAY, AUGUST 24, 2011 POPULAR POSTS

Windows Server 2008 Hyper-V Backup


I did a lot of research before providing this solution to public and I think that the combination of the script I wrote with some registry modifications and the limitation of Windows Backup Schedule to store the backup to a remote network share or external drive with automatic date creation to store the backups, inspired me to share a solution around this. First of all make sure that you applied the registry modification to support Hyper-V VSS Writer. Instructions on how to do so you can find in this post: To be able to enable VSS backup of Hyper-V Virtual Machines you will need to manual add a registry hack that will enable Hyper-V VSS Writer to be used with Windows Server 2008 Backup. Be sure that you have the latest patches installed for your Windows Server before proceed. 1) Regedit 2) Browse: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ 3) Select CurrentVersion and Create a New Key WindowsServerBackup 4) Select WindowsServerBackup and create a new key: Application Support 5) Select Application Support and create a new key: {66841CD4-6DED-4F4B-8F17FD23F8DDC3DE} 6) Under {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE} create a New String Value named Application Identifier with the value Hyper-V Or You could create a new file hyperv_vss_writer.reg and paste the following: WnosRgsr Eio Vrin50 idw eity dtr eso .0 [KYLCLMCIESFWR\irsf\idw HE_OA_AHN\OTAEMcootWnos N\urnVrinWnosevrakp TCreteso\idwSreBcu] [KYLCLMCIESFWR\irsf\idw HE_OA_AHN\OTAEMcootWnos N\urnVrinWnosevrakpApiainSpot TCreteso\idwSreBcu\plcto upr] [KYLCLMCIESFWR\irsf\idw HE_OA_AHN\OTAEMcootWnos N\urnVrinWnosevrakpApiainSpot{64C4 TCreteso\idwSreBcu\plcto upr\681D6E-FB81-D38D3E] DD44-F7F2FDCD} "plcto Ietfe""ye-" Apiain dniir=HprV Then execute the file to import the modifications to registry Create a batch file with the following code: @echo off :: set variables set remote=\\remoteip\remotefolder set folder=%date:~7,2%-%date:~4,2%-%date:~10,4% set localC=C: set localD=D: :: do not modify below echo Backup Started.. mkdir %remote%\%folder% wbadmin start backup -backupTarget:%remote%\%folder% include:%localC%,%localD% -quiet echo Backup Complete Succesfully @pause In the variables area we define: set folder=%date:~7,2%-%date:~4,2%-%date:~10,4% which a dated folder directory will be created on the remote location in the format of d-m-Y (ex: 05-112008). Then we execute the wbadmin command with -backupTarget: option to select our destination backup folder. That could be a second local drive, an external usb drive or a network share. After that we are using the -include: option to select the local drives or paths that we want to backup, which in our case is two volumes called C: and D:. You are not limited to backup the whole volumes but you could easily decide to backup only specific folders from each volume but you will have to define them in the script above. I had tested a full backup and restoration of Hyper-V images and they are booting succesfully.

Windows Server 2008 Hyper-V Backup I did a lot of research before providing this solution to public and I think that the combination of the script I wrote with some registry m... Default IIS 7 Log files location As you might notice in Internet Information Services 7 the default log location for files has been changed. In this article we are pointing ... (no title) The security database on the server does not have a computer account for this workstation trust relationship Before few days ago I return... Windows Server 2003 Active Directory and Security questions 1. Whats the difference between local, global and universal groups? Domain local groups assign access permissions to global domain groups... ESX interview questions 1. What is Virtualization Ans. Virtualization is an abstraction layer that decouples the physical hardware from the operating system to de... What is FSMO Roles? (Flexible Single Master Operations) What is FSMO Roles? (Flexible Single Master Operations) There are times when you may need to change the Domain Controller which holds one of... Backup and Restore IIS 6.0 in Windows Server 2003 This article will show how to succesfully backup and restore an IIS 6.0 configuration without any issues to a new server installation. Altho... Exchange Server 2007 Interview Question And Answer What is Exchange Server 2007? Microsoft Exchange Server 2007 is the next version of Microsoft Exchange. Microsoft Exchange is the indus... (no title) 1) What is Active Directory? A central component of the Windows platform, Active Directory directory service provides the means to manage t... Windows Server 2003 IIS and Scripting interview questions 1. What is presentation layer responsible for in the OSI model? The presentation layer establishes the data format prior to passing it alon...

LABELS

CCNA (1) Exchange Server (5) IIS (3) Linux / Unix (1) SQL SERVER 2008 (1)

techinterviewquestions4all.blogspot.in/2011/08/windows-server-2008-hyper-v-backup.html

1/4

1/19/13
To create a scheduled backup

Tech Interview Questions 4 all...: Windows Server 2008 Hyper-V Backup


VMware (1) Windows 2003 (4) Windows 2008 (4)

1) Create a new folder on C: drive named BackupSchedule 2) Place the backup script to BackupSchedule Folder 3) Create a backup account that will run the schedule (ex: backup) 4) Create a Schedule Task to run on daily basis the time and hour you wish to backup your server. Remember while you create your task to assign the backup account and select Run whether user is logged on or not option. Also be sure to have the same account details on the remote network location to avoid asking for a password.

FOLLOWERS

Join this site


w ith Google Friend Connect

Members (4)

Already a member? Sign in

FOLLOW BY EMAIL

Email address...

Submit

ABOUT ME

Venugopal.Devarala Ram Papudesi Chalapathi basha

Sample Output of the batch script running:

BLOG ARCHIVE

2012 (6) 2011 (11) August (7) Windows Server 2008 Hyper-V Backup Default IIS 7 Log files location Backup and Restore IIS 6.0 in Windows Server 2003 1) What is Active Directory?A central component o... How to move Exchange databases and logs in Exchang... Understanding of Flexible Single Master Operations... Exchange Server 2007 Interview Question And Answer...
Posted by Papudesi Chalapathi at 12:53 PM Labels: Window s 2008

July (4) 2010 (4)

No comments:
Post a Comment

SUBSCRIBE TO

Posts Comments

Links to this post


Create a Link

PAGES

Home

Newer Post Subscribe to: Post Comments (Atom)

Home

Older Post

Windows Server 2008 Hyper-V Backup


techinterviewquestions4all.blogspot.in/2011/08/windows-server-2008-hyper-v-backup.html 2/4

1/19/13

Tech Interview Questions 4 all...: Windows Server 2008 Hyper-V Backup


I did a lot of research before providing this solution to public and I think that the combination of the script I wrote with some registry modifications and the limitation of Windows Backup Schedule to store the backup to a remote network share or external drive with automatic date creation to store the backups, inspired me to share a solution around this. First of all make sure that you applied the registry modification to support Hyper-V VSS Writer. Instructions on how to do so you can find in this post: To be able to enable VSS backup of Hyper-V Virtual Machines you will need to manual add a registry hack that will enable Hyper-V VSS Writer to be used with Windows Server 2008 Backup. Be sure that you have the latest patches installed for your Windows Server before proceed. 1) Regedit 2) Browse: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ 3) Select CurrentVersion and Create a New Key WindowsServerBackup 4) Select WindowsServerBackup and create a new key: Application Support 5) Select Application Support and create a new key: {66841CD4-6DED-4F4B-8F17FD23F8DDC3DE} 6) Under {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE} create a New String Value named Application Identifier with the value Hyper-V Or You could create a new file hyperv_vss_writer.reg and paste the following: WnosRgsr Eio Vrin50 idw eity dtr eso .0 [KYLCLMCIESFWR\irsf\idw HE_OA_AHN\OTAEMcootWnos N\urnVrinWnosevrakp TCreteso\idwSreBcu] [KYLCLMCIESFWR\irsf\idw HE_OA_AHN\OTAEMcootWnos N\urnVrinWnosevrakpApiainSpot TCreteso\idwSreBcu\plcto upr] [KYLCLMCIESFWR\irsf\idw HE_OA_AHN\OTAEMcootWnos N\urnVrinWnosevrakpApiainSpot{64C4 TCreteso\idwSreBcu\plcto upr\681D6E-FB81-D38D3E] DD44-F7F2FDCD} "plcto Ietfe""ye-" Apiain dniir=HprV Then execute the file to import the modifications to registry Create a batch file with the following code: @echo off :: set variables set remote=\\remoteip\remotefolder set folder=%date:~7,2%-%date:~4,2%-%date:~10,4% set localC=C: set localD=D: :: do not modify below echo Backup Started.. mkdir %remote%\%folder% wbadmin start backup -backupTarget:%remote%\%folder% include:%localC%,%localD% -quiet echo Backup Complete Succesfully @pause In the variables area we define: set folder=%date:~7,2%-%date:~4,2%-%date:~10,4% which a dated folder directory will be created on the remote location in the format of d-m-Y (ex: 05-112008). Then we execute the wbadmin command with -backupTarget: option to select our destination backup folder. That could be a second local drive, an external usb drive or a network share. After that we are using the -include: option to select the local drives or paths that we want to backup, which in our case is two volumes called C: and D:. You are not limited to backup the whole volumes but you could easily decide to backup only specific folders from each volume but you will have to define them in the script above. I had tested a full backup and restoration of Hyper-V images and they are booting succesfully. To create a scheduled backup 1) Create a new folder on C: drive named BackupSchedule 2) Place the backup script to BackupSchedule Folder 3) Create a backup account that will run the schedule (ex: backup) 4) Create a Schedule Task to run on daily basis the time and hour you wish to backup your server. Remember while you create your task to assign the backup account and select Run whether user is logged on or not option. Also be sure to have the same account details on the remote network location to avoid asking for a password.

techinterviewquestions4all.blogspot.in/2011/08/windows-server-2008-hyper-v-backup.html

3/4

1/19/13

Tech Interview Questions 4 all...: Windows Server 2008 Hyper-V Backup

Sample Output of the batch script running:

Links to this post


Create a Link Newer Post Home Older Post

Simple template. Powered by Blogger.

techinterviewquestions4all.blogspot.in/2011/08/windows-server-2008-hyper-v-backup.html

4/4

Das könnte Ihnen auch gefallen