Einzelne Widerherstellungspunkte in DPM2007 löschen

Hier eine kleine Auflistung von Shell-Befehlen bezüglich Wiederherstellungspunkten, z.B. einzelne Wiederherstellungspunkte löschen:

* Display all recovery points on the server TestingServer
Get-ProtectionGroup -DPMServerName TestingServer | %{Get-Datasource
-ProtectionGroup $_} | %{Get-RecoveryPoint -Datasource $_}

* Display all recovery points on the server TestingServer for the protection
group TestProtectionGroup
Get-ProtectionGroup -DPMServerName TestingServer | where {$_.FriendlyName
-eq "TestProtectionGroup"} | %{Get-Datasource -ProtectionGroup $_} |
%{Get-RecoveryPoint -Datasource $_}

* Display only the recovery point on the server TestingServer for the
protection group TestProtectionGroup for a specific time (day and month
values can’t have leading zeros)
Get-ProtectionGroup -DPMServerName TestingServer | where {$_.FriendlyName
-eq "TestProtectionGroup"} | %{Get-Datasource -ProtectionGroup $_} |
%{Get-RecoveryPoint -Datasource $_} | where {$_.RepresentedPointInTime -eq
"3/5/2008 6:00:42 PM"}

* Delete only the recovery point on the server TestingServer for the
protection group TestProtectionGroup for a specific time
Get-ProtectionGroup -DPMServerName TestingServer | where {$_.FriendlyName
-eq "TestProtectionGroup"} | %{Get-Datasource -ProtectionGroup $_} |
%{Get-RecoveryPoint -Datasource $_} | where {$_.RepresentedPointInTime -eq
"3/5/2008 6:00:42 PM"} | %{Remove-RecoveryPoint $_}

 

Quelle: http://www.keyongtech.com/405726-ps-to-remove-a-specific

Leave a Reply

Your email address will not be published. Required fields are marked *