none
One time backup for DR purpose - DPM 2012 SP1 RRS feed

  • Question

  • DPM 2012 SP1

    We are performing a data center move this weekend and I need to perform a one-time backup of all of our protection groups.  I have 40 protection groups. 

    I am unable to find code or GUI capability to perform this action.

    Can this be done without modifying all my protection groups?

    Thanks

    Monday, February 10, 2014 6:07 PM

Answers

  • What about this cmdlet : http://technet.microsoft.com/en-us/library/hh881586.aspx ?

    There are exemple at the end of the page.

    PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
    PS C:\> $Ds = Get-DPMDatasource -ProtectionGroup $Pg
    PS C:\> New-DPMRecoveryPoint -Datasource $Ds -Disk -DiskRecoveryPointOption withsynchronize

    Monday, February 10, 2014 9:25 PM
  • Hi,

    If you don't want to use DPM Disk to Disk to Tape (D2D2T) solution and instead want to utilize a 3rd party backup product for tape backups - Using 3rd party to backup a DPM server is described here:  

    http://technet.microsoft.com/en-us/library/bb809019.aspx

    Basic steps for DPM 2012:

    1) Open a ADMINISTRATIVE command prompt and run dpmbackup -replicas
    2) Start the 3rd party backup application and have it backup all the data under the C:\Program Files\Microsoft System Center 2012\DPM\DPM\Volumes\ShadowCopy folder.

    Alternately you can use robocopy to copy the data from DPM replica's to another disk.  You may need to open an administrative command prompt in System Context using Sysinternals psexec.exe utility so you have access to the replica volumes.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, February 10, 2014 9:34 PM
    Moderator

All replies

  • What about this cmdlet : http://technet.microsoft.com/en-us/library/hh881586.aspx ?

    There are exemple at the end of the page.

    PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
    PS C:\> $Ds = Get-DPMDatasource -ProtectionGroup $Pg
    PS C:\> New-DPMRecoveryPoint -Datasource $Ds -Disk -DiskRecoveryPointOption withsynchronize

    Monday, February 10, 2014 9:25 PM
  • Hi,

    If you don't want to use DPM Disk to Disk to Tape (D2D2T) solution and instead want to utilize a 3rd party backup product for tape backups - Using 3rd party to backup a DPM server is described here:  

    http://technet.microsoft.com/en-us/library/bb809019.aspx

    Basic steps for DPM 2012:

    1) Open a ADMINISTRATIVE command prompt and run dpmbackup -replicas
    2) Start the 3rd party backup application and have it backup all the data under the C:\Program Files\Microsoft System Center 2012\DPM\DPM\Volumes\ShadowCopy folder.

    Alternately you can use robocopy to copy the data from DPM replica's to another disk.  You may need to open an administrative command prompt in System Context using Sysinternals psexec.exe utility so you have access to the replica volumes.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, February 10, 2014 9:34 PM
    Moderator
  • MSFT support gave me the following script to try. 

    # ----------------------------------------------------Beginning of Script---------------------------------------------------------------

    # Backup all protection groups to tape.

    # Please make sure that Collocation is enabled (optimize tape usage) to include all protection groups; else, it may ask for multiple tapes.

    # This Script assumes that Long Term Protection to Tapes is enabled for all Protection Groups and datasources.

    # If verify is set on the PG then verify will run after each backup job.

    disconnect-dpmserver (&hostname)

    connect-dpmserver (&hostname)

    cls

    $pg = @(get-ProtectionGroup (&hostname))

    foreach ($clipg in $pg)

    {

           write-host "`nGetting protection group $pgname in $(&hostname)..."

                  write-Output "Getting DS from PG $clipg..."

                  $backupds = @(Get-Datasource $clipg)

                  foreach ($ds in $backupds)

                  { 

                         write-host

                         write-host "Creating Recovery point for $ds" -foreground yellow 

                         $j = New-RecoveryPoint -Datasource $ds -Tape -ProtectionType $protectiontype

                         $jobtype = $j.jobtype

                         Write-Output "$jobtype Job has been triggerred..."

                         write-host "Waiting for $jobtype job to complete" -nonewline

                         while (! $j.hascompleted ){ write-host "." -nonewline; start-sleep 5}

                         write-host

                         if ($j.status -eq "Succeeded")

                         {

                               Write-host "Job $Jobtype completed successfully..."

                               $rp  = @(get-recoverypoint $ds | ? { $_.datalocation -eq 'Media'})

                               $rpl = get-recoverypointlocation $rp[$rp.count-1]

                               $gt  = get-tape -recoverypointlocation $rpl

                                $gtt += $gt

                         }

                  }

    }

    # ----------------------------------------------------End of Script------------------------------------------------------------------

    Regards,

    Prosenjit Kanjilal

    Disclaimer : The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.

    Monday, February 10, 2014 11:42 PM