DeepDiverMom
Programmer
My problem: I have specified to SQL Server in the installation's Maintenance plan to remove database-backup files that are older than 24 hours. (This directive works fine on two of my four SQL Server installations.) On two of the servers, SQL Server never deletes files as I have requested. I must remove files manually to avoid filling disk.
I have compared, directive by directive, the maintenance plan specifications of each of my four servers, but I cannot identify what is causing two of my four installations to ignore the "Remove files older than 1 Day(s)" setting.
Here are my Database-Maintenance-Plan specifications (from Enterprise Manager):
General tab: Databases: "All databases"
Optimizations tab:
Reorganize data and index pages (Checked): Change free space per page percentage to 10%.
Remove unused space from database files (Checked).
Shrink database when it grows beyond: 50MB
Amount of free space to remain after shrink: 10% of the data space
Schedule: Occurs every 1 week(s) on Sunday at 1:00:00 a.m.
Integrity tab:
Check database integrity (Checked)
Include indexes: Attempt to repair any minor problems
Perform these tests before backing up the database or transaction log.
Schedule: Occurs every 1 week(s) on Sunday at 12:00:00 a.m.
Complete Backup tab:
Back up the database as part of the maintenance plan (Checked)
Verify the integrity of the backup upon completion
Disk: Use this directory: D:\MSSQL7\BACKUP
Create a sub-directory for each database (Checked)
Remove files older than: 1 Day(s)
Backup file extension: BAK
Schedule: Occurs every 1 day(s), at 9:45:00 PM.
Transaction Log Backup: No operations selected.
Reporting:
History on this server:
Write history to the table msdb.dbo.sysdbmaintplan_history (Checked)
Limit rows in the table to (Checked): 1000 rows for this plan.
What could be causing the SQL Server to fail to remove the backup files?
Thanks,
Becca
I have compared, directive by directive, the maintenance plan specifications of each of my four servers, but I cannot identify what is causing two of my four installations to ignore the "Remove files older than 1 Day(s)" setting.
Here are my Database-Maintenance-Plan specifications (from Enterprise Manager):
General tab: Databases: "All databases"
Optimizations tab:
Reorganize data and index pages (Checked): Change free space per page percentage to 10%.
Remove unused space from database files (Checked).
Shrink database when it grows beyond: 50MB
Amount of free space to remain after shrink: 10% of the data space
Schedule: Occurs every 1 week(s) on Sunday at 1:00:00 a.m.
Integrity tab:
Check database integrity (Checked)
Include indexes: Attempt to repair any minor problems
Perform these tests before backing up the database or transaction log.
Schedule: Occurs every 1 week(s) on Sunday at 12:00:00 a.m.
Complete Backup tab:
Back up the database as part of the maintenance plan (Checked)
Verify the integrity of the backup upon completion
Disk: Use this directory: D:\MSSQL7\BACKUP
Create a sub-directory for each database (Checked)
Remove files older than: 1 Day(s)
Backup file extension: BAK
Schedule: Occurs every 1 day(s), at 9:45:00 PM.
Transaction Log Backup: No operations selected.
Reporting:
History on this server:
Write history to the table msdb.dbo.sysdbmaintplan_history (Checked)
Limit rows in the table to (Checked): 1000 rows for this plan.
What could be causing the SQL Server to fail to remove the backup files?
Thanks,
Becca