Partial Backups

This topic is relevant for all SQL Server databases.

Partial backups were introduced in SQL Server 2005. Partial backups are designed for use under the simple recovery model to improve flexibility for backing up very large databases that contain one or more read-only filegroups. However, partial backups work on all databases, regardless of recovery model.

Note

For an overview of the various types of backups, see either Backup Under the Simple Recovery Model or Backup Under the Full Recovery Model.

A partial backup resembles a full database backup, but a partial backup does not contain all the filegroups. Instead, a partial backup contains all the data in the primary filegroup, every read/write filegroup, and any optionally-specified read-only files. Partial backups are useful whenever you want to exclude read-only filegroups. A partial backup of a read-only database contains only the primary filegroup.

Creating Partial Backups

To create a partial backup, use the BACKUP statement and specify the READ_WRITE_FILEGROUPS option. You can also specify any read-only file or filegroup to include it in a partial backup. The basic syntax for creating a partial backup is:

BACKUP DATABASE database_name READ_WRITE_FILEGROUPS [ , FILEGROUP = { logical_filegroup_name | **@**logical_filegroup_name_var } [ ,...n ] ] TO <backup_device>

Note

Partial backups are not supported by SQL Server Management Studio or the Maintenance Plan Wizard.

Using Differential Partial Backups

A partial backup can serve as the differential base for differential partial backups. This let you supplement a partial backup with a short series of differential partial backups. For more information, see Using Differential Backups and Differential Partial Backups.