none
Powershell script for Tape to Disk restore RRS feed

  • Question

  • I am looking for a way to set a scripted scheduled task to restore an entire protection group that is only backed up to tape, to a drive locally attached to the DPM server.  Currently we back up to a virtual tape library that dedupes the data, but have the requirement to go to physical tape at least once per month.  The ability to attach to our enterprise physical tape library is not an option at this point giving us the need to restore particualar production groups from virtual tape to disk temporarily so that we can then back it up through the physical tape library.  Convoluted, but necessary until other capabilities present themselves. 

    Thanks for any help you can give.

    Rob


    http://www.virtuallyaware.com http://twitter.com/virtuallyaware
    Friday, August 20, 2010 7:24 PM

Answers

  • Hi Rob,

    This is a little tricky, as each data source type will require different New-RecoveryOption parameters.

    Automating is different, but here are the basics for recovering a tape based exchange backup to DPM server disk R:\ volume.


    $pg = Get-ProtectionGroup -DPMServerName DPM_SERVER_NAME
    $pg

     

    $ds = Get-Datasource -ProtectionGroup $pg[X]  Where X is a zero based index number into the list returned, if a single item, omit [x]
    $ds

     

    $rp = Get-Recoverypoint -Datasource $ds[X]  Where X is a zero based index number into the list returned, if a single item, omit [x]
    $rp

     

    $ri = Get-RecoverableItem -RecoverableItem $rp[X] -BrowseType Child   Where X is a zero based index number into the list returned, if a single item, omit [x]
    $ri

     

    $lib = Get-DPMLibrary -DPMServerName DPM_SERVER_NAME

     

    $rop = New-RecoveryOption -Exchange -ExchangeOperationType NoOperation -RecoveryType Restore -StorageGroupName "First Storage Group" -TargetLocation "R:\" -TargetServer "DPM_SERVER_NAME" -RecoveryLocation CopyToFolder -dpmlibrary $lib

     

    Recover-RecoverableItem -RecoverableItem $ri -RecoveryOption $rop

     

    More information: http://technet.microsoft.com/en-us/library/ff631926.aspx


    Good luck.


    Regards, Mike J [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, August 20, 2010 10:12 PM
    Moderator