This section explains how to implement restoration component set-wise.
To perform restoration, execute swsrpvrq shadow restore-hyperv (Hyper-V restore command).
Follow below procedure for restoring Guest OSes.
Execute swsrpvrq componentset info (Component set information display command).
Confirm the name of the component set that contains the Guest OS to be restored.
Example (execution on a Hyper-V host):
C:\>C:\Win32App\AdvancedCopyManager\bin\swsrpvrq componentset info Component-Set: Name=VMSet1, Count=2 Component: Writer=Microsoft Hyper-V VSS Writer Full-Path=\2ACF3DF4-CB02-454F-8369-2E5C0CA783B3 Friendly-Name=Guest1 Volume: Name=C:\ClusterStorage\Volume1, Logical-Unit=g1d1 Component: Writer=Microsoft Hyper-V VSS Writer Full-Path=\2ACF3DF4-CB02-454F-8369-2E5C0CA783B4 Friendly-Name=Guest2 Volume: Name=C:\ClusterStorage\Volume1, Logical-Unit=g1d1 Component-Set: Name=VMSet2, Count=1 Component: Writer=Microsoft Hyper-V VSS Writer Full-Path=\2ACF3DF4-CB02-454F-8369-2E5C0CA783B5 Friendly-Name=Guest3 Volume: Name=C:\ClusterStorage2, Logical-Unit=g1d2 Volume: Name=C:\ClusterStorage3, Logical-Unit=g1d3
Execute swsrpvrq shadow restore-hyperv (Hyper-V restore command) with the name of the component set to be restored specified in the -cs option.
All Guest OSes which has been backup target during backup will be restored.
Example (execution on a backup server):
C:\>C:\Win32App\AdvancedCopyManager\bin\swsrpvrq shadow restore-hyperv -h HVHOST -cs VMSet1 -manual-restore swsrp5204 The processing for PreRestore event has been completed. swsrp5205 Restore the following files. C:\ClusterStorage\Volume1\Hyper-V\Guest1\Virtual Machines\2ACF3DF4-CB02-454F-8369-2E5C0CA783B3.xml C:\ClusterStorage\Volume1\Hyper-V\Guest1\Virtual Machines\2ACF3DF4-CB02-454F-8369-2E5C0CA783B3\* C:\ClusterStorage\Volume1\Hyper-V\Guest1\Guest1-Disk.vhd C:\ClusterStorage\Volume1\Hyper-V\Guest1\Guest1.vhd C:\ClusterStorage\Volume1\Hyper-V\Guest1\Virtual Machines\2ACF3DF4-CB02-454F-8369-2E5C0CA783B4.xml C:\ClusterStorage\Volume1\Hyper-V\Guest2\Virtual Machines\2ACF3DF4-CB02-454F-8369-2E5C0CA783B4\* C:\ClusterStorage\Volume1\Hyper-V\Guest2\Guest2-Disk.vhd C:\ClusterStorage\Volume1\Hyper-V\Guest2\Guest2.vhd swsrp5206 Press 'Y' key to continue when restoration is completed. If you are to cancel restoration, press 'Q' key. swsrp5208 The processing for PostRestore event is performed. 'swsrpvrq shadow restore-hyperv' completed
When restoration is completed, press the 'Y' key.
Post-processing for restoration is executed.
Point
Restoration uses the "Writer Metadata Document" and the "Backup Component Document" that were saved during backup.
The current version supports restoration only by manually copied files.
When copying files manually, be sure to copy the file ownership and access control list information together.
The following is an example of allocating a backup volume as a network drive and restoring it by the XCOPY command:
Assign the backup volume in which a shadow copy exists as a network drive (Z:).
net use Z: \\bksvr.contoso.com\<shared name>
Copy a file. (By specifying /O of XCOPY command, file ownership and access control list information are also copied.)
xcopy Z:\<file path> C:\ClusterStorage\Volume1\<file path> /e /s /y /F /O /X /R /H
Disconnect a network drive after the restoration procedure is completed.
net use Z: /delete