|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Maintenence Cleanup Task does not delete backup files
I'm testing a new Mainentence Cleanup Task that runs inside the same
subprocess as the backup task. I have it set up to delete .bak files in the backup dir that are older than 1 hour (for testing). When I run the task, the backup runs successfully but no older backups are ever deleted. Can anyone offer a suggestion as to why? The cleanup task is enabled; it's looking in the correct dir for .bak files; it's looking for backup files not text reports. I just can't see what the issue might be. There are no errors reported when I execute the task. Make sure that you have a \ at the end of the path, so if the backups are in
D:\SQLBackups use D:\SQLBackups\ Also make sure that the extension is bak and not .bak For whatever reason it doesn't like having the . before the bak. If you are deleting trn files and bak files, have two separate jobs one to cleanup the bak files and one to clean up the trn files. If you backed up databases to separate folders, checking the 'Include first-level subfolders' check box is necessary. Also make sure that the return of SELECT @@Version is 9.0.3050 or greater. If it isn't download Service Pack 2 and apply it to your SQL Server as there were fixes made to Maintenance Plans in SP1 and SP2. Show quoteHide quote "mat" <m**@notarealdotcom.adr> wrote in message news:MPG.239f2f6ea41a002498973d@msnews.microsoft.com... > I'm testing a new Mainentence Cleanup Task that runs inside the same > subprocess as the backup task. I have it set up to delete .bak files in > the backup dir that are older than 1 hour (for testing). When I run the > task, the backup runs successfully but no older backups are ever > deleted. Can anyone offer a suggestion as to why? > > The cleanup task is enabled; it's looking in the correct dir for .bak > files; it's looking for backup files not text reports. I just can't see > what the issue might be. There are no errors reported when I execute the > task. In article <#PUSKHQVJHA.3***@TK2MSFTNGP06.phx.gbl>,
jmkehayias.nospam@nospam.google.com says... > Make sure that you have a \ at the end of the path, so if the backups are in Thank you so much...in my case changing the file extension was enough to > D:\SQLBackups use D:\SQLBackups\ > Also make sure that the extension is bak and not .bak For whatever reason > it doesn't like having the . before the bak. > If you are deleting trn files and bak files, have two separate jobs one to > cleanup the bak files and one to clean up the trn files. > If you backed up databases to separate folders, checking the 'Include > first-level subfolders' check box is necessary. > > Also make sure that the return of SELECT @@Version is 9.0.3050 or greater. > If it isn't download Service Pack 2 and apply it to your SQL Server as there > were fixes made to Maintenance Plans in SP1 and SP2. > make it work.
Other interesting topics
Max server memory being ignored
Re-attaching database Consolidate datafiles to one drive SQL 2k5-32bit >SQL 2k5-64bit SQL GROUP BY CLAUSE Taking database offline taking long time 32 vs 64 bit SQL Server hotfixes Bug or Bad Practice on my part? Re: Odd Identity Behavior in Enterprise Manager sql server profiler: what does this combination of completed batches mean |
|||||||||||||||||||||||