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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s