Problem with maintainance clean up task.

  • Hello all,

    I am supporting a production database with small size.

    In that backup activity is running on daily basis. The retention period for backup files is 3 days only.

    For that I have created a maintenance job in that I am running maintenance clean up task first and then the DB backup task (I am taking all DB backup in respective folders).

    But after running that job I noticed that the system databases (master, model,msdb) backup files counts are only three (obviously...), but the other user database file counts are four....

    so may I know the cause of the above scenario and also solution on it..?

    Supporting Info:

    The backup job is running on 1:00 AM

  • This depends the timestamp of the backup file. In your cases, the 3 days old files are not old enough ( say 2 days, 59 minutes, 55 sec ) to be deleted. Hence the files are retained for one more day.

    You should run the clean up task after 10 minutes of your backup activity and this will solve the problem.:-)

  • Some possible problems.

    1.Tape backup my be blocking the file from deletion .

    2.Also check SQL server startup account has modify permission for respective folders and file level too

    3. As last option ,delete the maintenance task and write a select script to get files older than 3 days & delete it , add this as a first step

  • Hi Atul,

    I have solved problem with the solution given by you.. thanks.

  • Nice to hear this. Cheers.:-)

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply