scripting V2iSR.exe (to automate restore from recovery point)
I'm making a customised boot CD, and want to create a batch file / script /etc which will automatically commence a full disk restore from a recovery point which I nominate (across the network).
My end goal, is that I can give shift operators a CD which will rebuild a machine in the event of an OS crash, or app problems.
Is this possible? I'm using LSR 6.x, and yes I know there's no supported CD customisation tool there, but from looking through the .cmd files on the LSR CD, it's clear that V2ISR.EXE supports command line arguments...but which ones....?
Cheers,
Brett
ahh, thanks a million Bill. I'd tried "/?", but got "Error EC95001C: Command line is not valid, Argument not allowed"
Hadn't tried "-?" though, worked like a charm.
Thanks again,
Brett
WScript.Echo "Backup Exec System Recovery Convert script" & vBCrlf & vBCrlf
If (WScript.Arguments.Count < 3) Then
WScript.Echo "Use the following parameters:" & vBCrlf & "1. Input file (full pathname to .v2i location)" & VbCrLf & "2. Output path" & vBCrlf & "3. VMDK/VHD"
WScript.Quit
End If
outputPath = WScript.Arguments(1)
sType = WScript.Arguments(2)
WScript.Echo "Input file : " & inputFile
WScript.Echo "Output path : " & outputpath
WScript.Echo "Output format: " & sType & vBCrlf
' Step 2: Create a Backup Exec System Recovery automation object
Set v2iAuto = CreateObject("Symantec.ProtectorAuto")
Set oNet = CreateObject("Wscript.Network")
Call v2iAuto.Connect(oNet.ComputerName)
SV2iPath = v2iAuto.GetSV2iFilePath
oSv2iLocation.Parse(SV2iPath)
Set oP2vSystemInfo = v2iAuto.LoadSV2i(oSv2iLocation)
Set oDestination = CreateObject("Symantec.VProRecovery.FolderLocation")
oDestination.Path = "D:\"
If sType = "VMDK" Then
oP2vSystemInfo.DestinationConversionType = 1
End If
oP2vSystemInfo.DestinationConversionType = 2
End If
Call v2iAuto.ConvertSystem(oP2vSystemInfo)
Has anyone been able to use the V2ISR.exe command line successfully? Please supply a working example of the command line if you have. I have tried the following but receive the error: "The destination is invalid"
V2ISR -SVF Z:\Recovery_Point\Fender_C_Drive001.v2i -DDN 1 -DPN 1 -ODL C -OPP -OSA
I tried to select the first disk so I wrote -DDN 1 and got the same error.
Later figured out that the first disk is -DDN 0.
And dont forget -NUI (No user input) if you want to automate the whole thing.
I booted into Symantec Recovery SRD and brought up a Terminal and tried your solution with -NUI and saw nothing happening. I didnt get any errors, but didnt seem like anything was being processed. So I took out the -NUI and saw an error:
Error EOBC0001: Property Segment was not found.
Any clues?
And if it had worked, were would you put the script to automate the SRD? Would it be a batch file?
Would you like to reply?
Login or Register to post your comment.