none
DPM auto recovery in a share

    Question

  • 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

     

    Wednesday, September 14, 2011 3:24 PM

Answers

  • 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.


    Wednesday, September 14, 2011 10:02 PM

All replies

  • 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.


    Wednesday, September 14, 2011 10:02 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 $rop

     

    Recover-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 2:34 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 
    Thursday, September 15, 2011 9:21 PM
  • Any news?
    Tuesday, September 20, 2011 5:22 PM
  • Matthieu,

    Did you have this resolved?


    Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights
    Friday, January 13, 2012 8:48 AM