Can anyone help me with re-creating our VBM files using the powerscript from VpowerCLI? (http://www.vpowercli.co.uk/2011/12/29/c ... m-scratch/)
I appreciate this isn't a Veeam product however after speaking to support yesterday they have told me that we cannot recover from our backups unless we have a valid VBM file.
I have a number of monthly drives which we copy VBK files off to, we also have a few associated VBM files however a few of these files (VBM) have been removed from the drive and therefore we cannot restore.
When trying to import the backup file (VBM) to the script GUI from VpowerCLI I receive an error;
Code: Select all
PS C:\Users\*username*> C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1
GAC Version Location
--- ------- --------
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Wind...
Cannot convert argument "0", with value: "System.Object[]", for "GenerateMeta"
to type "Veeam.Backup.Core.CBackup": "Cannot convert the "System.Object[]" valu
e of type "System.Object[]" to type "Veeam.Backup.Core.CBackup"."
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:43 char:71
+ $Data = [Veeam.Backup.Core.CBackupMetaGenerator]::GenerateMeta <<<< (
$Backup)
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument
You cannot call a method on a null-valued expression.
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:44 char:24
+ $Data.Serialize <<<< () | Out-File $VBMFile
+ CategoryInfo : InvalidOperation: (Serialize:String) [], Runtime
Exception
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Load" with "1" argument(s): "Could not find file '\\192.168.
200.217\share\Non-Critical\Non-Critical Backup.vbm'."
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:46 char:18
+ $xml.Load <<<< ($VBMFile)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
Property 'JobName' cannot be found on this object; make sure it exists and is s
ettable.
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:47 char:25
+ $xml.BackupMeta. <<<< JobName = $JobName
+ CategoryInfo : InvalidOperation: (JobName:String) [], RuntimeEx
ception
+ FullyQualifiedErrorId : PropertyNotFound
Exception calling "Save" with "1" argument(s): "Invalid XML document. The docum
ent does not have a root element."
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:48 char:18
+ $xml.Save <<<< ($VBMFile)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
New-Object : Cannot find type [Veeam.Backup.Core.CBackupRepositoryImporter]: ma
ke sure the assembly containing this type is loaded.
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:53 char:37
+ $TempRepository = New-Object <<<< Veeam.Backup.Core.CBackupRepositor
yImporter -ArgumentList $Repository, 0
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentExcepti
on
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb
jectCommand
You cannot call a method on a null-valued expression.
At C:\Users\*username*\Desktop\VeeamPSSnapIn.ps1:54 char:31
+ $TempRepository.Import <<<< ()
+ CategoryInfo : InvalidOperation: (Import:String) [], RuntimeExc
eption
+ FullyQualifiedErrorId : InvokeMethodOnNull
many thanks
Discus