October 14, 2010 at 9:01 am
If I append TLog backups to a file can I delete all the backups from that file that are older than a certain date? It seems like the only procedure that can do something like this is xp_delete_file, but that deletes the entire file, and I just want to delete certain backups on the file.
I know there are other ways of accomplishing this like using a different file every day or week, but I would like to know if there is a way to do a partial file delete.
October 15, 2010 at 2:28 am
Toby White (10/14/2010)
I just want to delete certain backups on the file.
What does it mean?
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
October 15, 2010 at 4:48 am
Bhuvnesh (10/15/2010)
Toby White (10/14/2010)
I just want to delete certain backups on the file.What does it mean?
Backup Device ?
October 15, 2010 at 5:45 am
Bhuvnesh (10/15/2010)
What does it mean?
when you do a backup that does not include the WITH INIT clause, the new backup is appended to the same physical file. So after two weeks of daily FULL backups for example, a single .bak file might contain 14 individual backups.
The OP question is suppose he doesn't need backups from 8-14 days ago from my example....can he remove them and leave the last 7.
His situation might be more complicated, since the backup file could contain a mix of different backups...full and transaction for example...if he has two FULL backups in the stack, he doesn't need the oldest FULL anymore, right?
Lowell
October 15, 2010 at 5:49 am
Lowell (10/15/2010)
Bhuvnesh (10/15/2010)
What does it mean?when you do a backup that does not include the WITH INIT clause, the new backup is appended to the same physical file. So after two weeks of daily FULL backups for example, a single .bak file might contain 14 individual backups.
The OP question is suppose he doesn't need backups from 8-14 days ago from my example....can he remove them and leave the last 7.
His situation might be more complicated, since the backup file could contain a mix of different backups...full and transaction for example...if he has two FULL backups in the stack, he doesn't need the oldest FULL anymore, right?
Ohh got it thanks but now it seems like bad backup planning
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
October 15, 2010 at 7:06 am
Lowell, you are exactly correct, Bhuvnesh, I am only interested in whether it can be done, and if so what the procedure(s) is/are.
October 15, 2010 at 7:27 am
The simple answer is no.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply