Backups files older than specified number of days are not removed when running scheduled backups

When scheduling backups through the Blackbaud Management Console for SQL Server 2008, backups older than the specified number of days are not removed when checkbox to "Remove Files older than" is marked. 

Download and install the latest version and patch, if applicable. 

Alternative Solution:

This alternative solution requires changes to your SQL Server backup schedule.  Please contact a qualified SQL Server Professional for assistance with these steps.

  1. Open SQL Server Management Studio
  2. Connect to the instance of SQL Server where backups are being made
  3. Expand SQL Server Agent > Jobs
  4. Select the Job named BMC: Scheduled backup(DatabaseName) where DatabaseName is the name of the database being backed up
  5. Right click and select Properties
  6. Select Steps in the Select a page box on the left
  7. Highlight Step 1 and click Edit at the bottom of the screen
  8. In the Command box, move the -DelBkUps command so that it is after the -BkUpDB command
    The command that the BMC creates:
    EXECUTE master.dbo.xp_sqlmaint N'-D FE_SAMPLEDATA -WriteHistory -VrfyBackup -BkUpMedia DISK -DelBkUps 8days -BkUpDB "D:\BackupLocation" -BkExt "BAK"'

    This should be changed to (make sure that BackupLocation is the actual location where backups are created):
    EXECUTE master.dbo.xp_sqlmaint N'-D FE_SAMPLEDATA -BkUpDB "D:\BackupLocation" -WriteHistory -VrfyBackup -BkUpMedia DISK -DelBkUps 8days -BkExt "BAK"'
     
  9. Click OK twice to save the changes
  10. If you make changes to the Backup Schedule in the Blackbaud Management Console this change will be overwritten

Environment

 7.92 ; BMC 2.4.33

Was this article helpful?