Server Maintenance tasks to age out/expire stale data

Does anyone know of a way to allow laptops to age out of DPM 2012 R2?

For example, we would like the DPM server to delete any data for laptops that have not had any contact with the server for 6 months. 

September 13th, 2015 10:08pm

Hi Malco,

There is no built-in feature for what you are asking for. You could however use Powershell to locate and delete all Recovery Points older then 6 months (182days). I've written an example how it could look to help you get started:

# Number of days since last recovery point
$Days= "182"

# Get Protection Group containing your Laptops
$pg = Get-ProtectionGroup | where {$_.Name -eq "Laptops"}

# Get all datasources in Protection Group "Laptops"
$dsList = Get-Datasource -ProtectionGroup $pg

# List and deletes all Recovery Points for datasource in Protection Group "Laptops" that is older than $Days
ForEach ($ds in $dsList)
{
    $RPs = @(Get-RecoveryPoint -datasource $ds | Where-Object {$_.RepresentedPointInTime.Date -ge $((Get-Date).AddDays(-$Days))})
    ForEach ($rp in $RPs)
    {
        Remove-DPMRecoveryPoint -RecoveryPoint $rp
    }
}

Remeber to be very careful when working with scripts that deletes Recovery Points!

Kind Regards
Markus Eliasson


Free Windows Admin Tool Kit Click here and download it now
September 14th, 2015 3:53am

Thanks Markus, I'll stat testing... carefully!

Does anyone know when DPM for laptops will become a proper Laptop backup solution in it's own right with standard features you would expect?

We use both the server and laptop side of DPM and although the Server side works really well, the Laptop side leaves a lot to be desired!

September 14th, 2015 6:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics