When Backup Sharepoint 2007 , DPM catalougue MOSS items every 24 hours , if you need to force this operation to be able to restore item you can use powershell command , but the one written on technet is very tricky
http://technet.microsoft.com/en-us/library/ff634233.aspx
Start-CreateCatalog –DataSource <DataSourceObject> so if you write this command and try any values for datasource will give error:
error: cannot bind parameter ‘datasource’ cannot convert the ‘…’ value of type ‘system.string’ to type microsoft.internal.enterprisestorage.dls.UI.cmdlet.protectioncmdlets.createcatalogcmdlet
this is how to enter the command, you must enter your datasource as variable, use the below
$pg1 = get-protectiongroup –dpmservername yourdpmservername
$ds1 = Get-Datasource –ProtectionGroup $pg1
start-createcatalog -datasource $ds[1]
DPM will start catalogue
This worked for me but only when removing the ‘[1]‘ after $ds
Thanks.
I tried this and got the following…
PS D:\Program Files\Microsoft DPM\DPM\bin> $ds = Get-Datasource -ProtectionGroup
$pg
Get-Datasource : Cannot convert ‘System.Object[]‘ to the type ‘Microsoft.Intern
al.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProtectionGroup’ required by p
arameter ‘ProtectionGroup’. Specified method is not supported.
At line:1 char:38
+ $ds = Get-Datasource -ProtectionGroup <<<
PS D:\Program Files\Microsoft DPM\DPM\bin> start-createcatalog -datasource $ds
Start-CreateCatalog : Cannot validate argument on parameter ‘Datasource’. The a
rgument is null. Supply a non-null argument and try the command again.
At line:1 char:32
+ start-createcatalog -datasource <<<
first you have to define the protection group by writing the below command
$pg1 = get-protectiongroup –dpmservername yourdpmservername
now it is defined as pg1
then write the below command to call for the protection group
$ds1 = Get-Datasource –ProtectionGroup $pg1
dont remove the 1 , and tell me if the first command work for you
I’m sorry. I missed that peice when I pasted. I did step 1 setting the string for the protection group. That peice was succesful. The rest failed. It’s acting as though it doesn’t recognize the $pdg1 sting. If I run the second command on it’s own without the $pdg1 sting it does not fail. Any ideas?
I don’t understand what is $pdg1 , its $pg1 or $ds1 , please copy the command from the blog .
it’s a typo… i ran it through once more and here is the full process i went through…
PS D:\Program Files\Microsoft DPM\DPM\bin> $pg1 = get-protectiongroup -dpmserver
name epmlivebkp1.epm.com
PS D:\Program Files\Microsoft DPM\DPM\bin> $ds1 = Get-Datasource -ProtectionGrou
p $pg1
Get-Datasource : Cannot convert ‘System.Object[]‘ to the type ‘Microsoft.Intern
al.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProtectionGroup’ required by p
arameter ‘ProtectionGroup’. Specified method is not supported.
At line:1 char:39
+ $ds1 = Get-Datasource -ProtectionGroup <<< start-createcatalog -datasource $ds1
Start-CreateCatalog : Cannot validate argument on parameter ‘Datasource’. The a
rgument is null. Supply a non-null argument and try the command again.
At line:1 char:32
+ start-createcatalog -datasource <<<