Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a maintenance plan to do a full backup every night at midnight and a transaction backup every hour.

Both have "Delete backups older than 3 days" checked in the wizard

Here's the SQL from the Job:

EXECUTE master.dbo.xp_sqlmaint N'-PlanID 8DBCD331-76C8-4736-87ED-FB840696AE63 -WriteHistory  -VrfyBackup -BkUpMedia DISK -BkUpLog "T:\SQL Backups" -DelBkUps 3DAYS -CrBkSubDir -BkExt "TRN"'

The full backups seem to be cleaning up correctly. However, I'm seeing Transaction logs going back for weeks and we're having to manually go in and clear space because of this.

Is there any reason why this would happen? Permissions? Job taking to long?

share|improve this question
Anything in the log files of the server? – Peter Schuetze Jan 13 '10 at 15:29
up vote 2 down vote accepted

If I remember correctly, that was kind of buggy in SQL Server 2000. Personally I don't set this option in my maintenance plans, I schedule a batch file to delete the backup files after they've been backed up to tape. Maybe these will help:

share|improve this answer

When I usually see this it's due to a job in a maintenance plan failing. Essentially the maintenance plan backs up a database before it deletes old backups. When it does delete the old backups it does it strictly on a time basis. Meaning that when the time comes it will delete a full backup but leave the now useless tranlog backups for that period between the deleted backup and the next full backup.

I wrote this script a few years back that allows you to delete sets of backups and you can schedule it to run before the maintenance plan backup.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.