Our nightly full (and periodic differential) backups are becoming quite large, due mostly to the amount of indexes on our tables; roughly half the backup size is comprised of indexes.
We're using the Simple recovery model for our backups.
Is there any way, through using FileGroups
or some other file-partitioning method, to exclude indexes from the backups?
It would be nice if this could be extended to full-text catalogs, as well.
If you switch over to full recovery mode, you can do this with filegroups, but it's really, really clumsy. You leave the data in the primary filegroup, and put the indexes in a separate (non-default, that's the key) filegroup.
Then you stagger your backups so that you're doing filegroup backups of the primary every night, and transaction log backups every X minutes.
When disaster strikes, you restore the primary filegroup by itself. The data is suddenly online, but the indexes are not. However, to get back to normalcy, you'll need to export that data into a new clean database and add indexes from there. You can't bring the database completely online without restoring all of the filegroups, and you can't say "I don't need that other filegroup anymore anyway."
For more about how this works, check out my video tutorial on filegroup restores.
Honestly, you really don't want to do this, even if you overcome the other issues others raise here.
When you restore the backup in an emergency, you don't want to wait for the indexes to rebuild, and you're going to suffer abominable performance until you do.
I can't think of a situation where you'd want to restore a backup without indexes, so in all cases you'll really want to back them up at the same time.
You'll likely need to look for other solutions to this problem...
-Adam
It sounds as if this isn't supported. From this bug report info:
might be a crazy idea, but here goes.
Of course you can only really do this if you database allows for some down-time in the day.
Also, dont drop your clustered indexes as SQL Server will waste a lot of time converting these to a heap.
Does buying that extra disk space seem like an easier solution yet?
Have you considered doing compressed backups? this is a new feature of 2008, it may be an option for you.