Difference between filegroup backup and database backup
Updated: 21 May 2010 | 3 comments
Hi there,
What's the difference (when backing up SQL) between a filegroup backup and a database backup?
Chars,
Richard
discussion Filed Under:
Comments
Short answer - unless it's a huge SQL database and you're doing clever things with it then just ignore the filegroup backup, and stick with the database backup.
Long answer - With SQL server you have databases and filegroups, a database contains all of the data within that database and is nice and straight forward. A filegroup on the other hand contains either all or some of the data within the database. Filegroups hold the physical files (eg the mdf files) which make up the database, and in most cases there will only be one of them, normally called Primary, which will contain the one mdf used.
Now in a large installation you might find that your database mdf files are too large to fit onto one disk, so you might want to split the database across multiple mdf files, and at this point filegroups come into play. If you split all the tables which are regularly used and updated into one mdf on a fast HDD and put it in the Primary filegroup, and then put the less used tables used more for reference onto a slower HDD in a secondary filegroup, you could make best use of the system, however you might not want to bother backing up the secondary mdf, since the data within that file very rarely gets changed. You can therefore choose to do a filegroup backup instead of a complete database backup, and only backup the Primary filegroup, therefore reducing the amount of storage space required for your backup.
Hope that makes sense (it's been a while since I last looked into it).
That's an excellent answer, and makes it perfectly clear.
Many thanks for that!!
Richard
How does one do a FileGroup
How does one do a FileGroup backup within Backupexec 11d? One of the DB in our SQL server is suggesting that we use the filegroup method because it is not online. Backup can be performed by using the FILEGROUP or FILE clauses to restrict the selection to include only online data.
Vinh Huynh
Would you like to reply?
Login or Register to post your comment.