I saw this question posted on an older thread but never saw a reply / solution to the older thread and it has since been closed so I thought I'd ask again.
PROBLEM:
I have a number of databases that I've setup via SQL 2005 DB Maintenance Plan to not only run a FULL backup every Sunday and Wednesday mornings but to also DELETE files older than three days via cleanup task. I've setup the cleanup task to check the D:\..\Backups folder to delete any .BAK files older than three days but it's NOT deleting the older backup files.
I assume the reason is because I have setup the backup to backup the databases in separate folders so the agent does not look at anything other than the specific folder I've defined; i.e. D:\...\Backups, but no sub-folders within the 'Backups' folder...is this why the files are not getting deleted? If so, then how are other folks handling the cleanup of older database files? I really would prefer to to dump all of my backup files in ONE folder. I would have thought that SQL Server 2005 would have included some logic / option to not only check root folders but also sub-folders as well for the cleanup task.
Please advise and Thanks in advance.
PROBLEM:
I have a number of databases that I've setup via SQL 2005 DB Maintenance Plan to not only run a FULL backup every Sunday and Wednesday mornings but to also DELETE files older than three days via cleanup task. I've setup the cleanup task to check the D:\..\Backups folder to delete any .BAK files older than three days but it's NOT deleting the older backup files.
I assume the reason is because I have setup the backup to backup the databases in separate folders so the agent does not look at anything other than the specific folder I've defined; i.e. D:\...\Backups, but no sub-folders within the 'Backups' folder...is this why the files are not getting deleted? If so, then how are other folks handling the cleanup of older database files? I really would prefer to to dump all of my backup files in ONE folder. I would have thought that SQL Server 2005 would have included some logic / option to not only check root folders but also sub-folders as well for the cleanup task.
Please advise and Thanks in advance.