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?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.