So Microsoft DPM software is a pretty decent backup solution, but it does have a nasty tendency to not remove old backups correctly even if retention policies are set. This can happen for a multitude of reasons that I won’t go into.
This article is going to very quickly go over how you can remove backups outside of a certain time frame.
I’m a massive fan of PowerShell and as is often the case it has a load of very handy commands related to DPM which we can make use of. I’m sure there are cleaner ways to do it but if you just want to remove old backups then the script below will do it for you.
Make sure to change the $backupDateCutoff value at the top to change how many days backups you want to retain. This script will loop through every Protection Group, pick out all of the backups and then create a list of all recovery points, it then goes through the list and removes any backups older than a certain age using a DPM command called ‘Remove-RecoveryPoint’ which cleanly removes the backup.