tags:

views:

54

answers:

2

I often like to create backups when testing the software I work on, and will sometimes create a differential backup if I want to be able to get back to multiple previous states. However, sometimes I realize that I forgot one thing I wanted to include in a differential backup, or I no longer need a previous differential backup. Sometimes I simply want to create a new scenario from the original base image and start working with a new series of differential backups. So I'd like to be able to delete some older differential backups so I don't get confused about which ones I'm using. But I can't find any way to delete just the differential backups, selectively or all at once.

A: 

The best solution I've found so far is to remove the existing backup destination (so that the new backup won't overwrite it) and create a new one in a new file, then create a differential backup to that new file with the "back up to a new media set" option selected. But I currently don't understand this solution or even know if it works for sure (I haven't done a lot of backing up and restoring lately). How does it know what the base backup looks like if I've removed that file from the destination set?

I'm starting to think the best way to delete all my differential backups might actually be to skip all that and just restore to my base backup, then re-backup overwriting all existing backup sets. This method doesn't let me pick and choose which differential backups to delete, but at least I can understand what's going on and rely on it.

BlueMonkMN
A: 

Where are you backing these up to? If you are backing up to disk, then you can have each backup be it's own file. That way you can individually remove files/backups you no longer want or need. The initial backup will be the base image/backup, and each after can be a differential if you want.

If your database is small enough (or you have enough space) you can always do full backups since you said this is all for testing, so I'm guessing you aren't working with huge amounts of data during this process. Then you don't need to worry about differentials, and can always do a full restore from a single file instead of having to maintain the chain.

Thyamine
That's what I'm not clear on. How *do* I properly do a differential back up to a separate file? How does it know what the base image is?
BlueMonkMN
I believe the backup through a maintenance plan will do it automatically. My backups run nightly, and each backup is a new file. I would imagine the differential runs the same way. If you are doing it manually each time, you simply remove the last destination folder/file, and add a new one. Here's a link for more formal information: http://msdn.microsoft.com/en-us/library/ms181092.aspx
Thyamine
All my backups are manual. How/where does it remember/show the base backup file name once I've removed it from the destination list? I'm just confused -- what if I have multiple base backups; how does it know which one to differentiate from?
BlueMonkMN
I'm not certain without testing it myself. I would create a folder and create a few backups and look at their sizes. The first backup should be noticeably large because it'll be the base, and the second and after will be much smaller since they are differentials and created soon after the base. Since the maintenance jobs will keep track of that information, I'm thinking that the server is storing it somewhere in the master database.
Thyamine
I have already done this, which is why I'm confused. Once I removed the base backup from the backup window, there was no indication which base a differential backup was going to use. And I don't have any maintenance jobs. It's all manual. But if it has it hidden away somewhere, I'll have to take your word for it. I'm just not used to having such a significant piece of information being hidden. This could be disastrous if someone loses track of which base they need to keep for their differential backups.
BlueMonkMN