DPM auto recovery in a share
-
Wednesday, September 14, 2011 3:24 PM
Hi,
I'm trying to build a script for auto recovery in a share.I want the lastest backup.
$pg = get-protectiongroup –dpmservername kob-dpm
$ds = get-datasource –protectiongroup $pg
$rp= get-recoverypoint –datasource $ds[0]
$gr = get-recoverableitem –recoverableitem $rp[-1]$rp[-1] for the latest backup?
But what is the next step? Destination is \\kob-database\Backup
Thanks
Matthieu
All Replies
-
Wednesday, September 14, 2011 10:02 PM
Hi,
you should take a look at these scripts :
http://gallery.technet.microsoft.com/scriptcenter/52bd6e56-60b6-420c-b902-55f6dbeb814d
http://gallery.technet.microsoft.com/scriptcenter/cf2ce68e-89ef-4b48-9c29-95ca7a2c8a0a
That should help.
- Edited by Jérémy Sihassen Wednesday, September 14, 2011 10:03 PM
- Marked As Answer by Yegor StartsevMVP, Moderator Monday, April 08, 2013 11:03 AM
-
Thursday, September 15, 2011 2:34 PM
Thanks for these scripts. But they doesn't works.
$pg = get-protectiongroup –dpmservername kob-dpm
$ds = get-datasource –protectiongroup $pg
$rp = get-recoverypoint –datasource $ds[0]
$gr = get-recoverableitem -recoverableitem $rp[-1] -BrowseType child
$rop = New-RecoveryOption -TargetServer kob-database -TargetLocation "c:\databases\Backup" -RecoveryLocation CopyToFolder -E14datasource -ExchangeOperationType NoOperation -RecoveryType Restore
$rj = recover-recoverableitem -recoverableitem $gr -recoveryoption $ropRecover-RecoverableItem : Cannot validate argument on parameter 'RecoverableIte
m'. The argument is null. Supply a non-null argument and try the command again.
At C:\Users\mboret\Desktop\kplatform.ps1:6 char:47
+ $rj = recover-recoverableitem -recoverableitem <<<< $gr -recoveryoption $rop
+ CategoryInfo : InvalidData: (:) [Recover-RecoverableItem], Para
meterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Inter
nal.EnterpriseStorage.Dls.UI.Cmdlet.RecoveryCmdLets.RecoverRecoverableItem
I don't understand why $gr is empty????
-
Thursday, September 15, 2011 9:21 PM
if you take a look at the second script :
They use $rp and not $gr as recoverableitem.
$restoreJob = Recover-RecoverableItem -RecoverableItem $rp -RecoveryOption $recoveryOption -RecoveryPointLocation $rsl break
-
Tuesday, September 20, 2011 5:22 PMAny news?
-
Friday, January 13, 2012 8:48 AMModerator
Matthieu,
Did you have this resolved?
Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights

