File/Filegroup Backups
- A file or filegroup backup does not back up any portion of the transaction log. In
order to restore a file or filegroup backup, you must have the transaction log
backups since the last file or filegroup backup, including the tail of the log, in order
for the database system to ensure transactional consistency. This also implies that
the database must be in full or bulk-logged recovery because these are the only
models that support transaction log backups. - Individual file or filegroup backups can be restored from a full database backup.
- Point-in-time recovery is not permitted with file or filegroup backups.
- Differential backups can be combined with file or filegroup backups. These differential
backups capture only those extents that have changed since the file or filegroup
backup was made.
EXAMPLE
BACKUP DATABASE [AdventureWorks] FILE = ‘AdventureWorks_ReadOnlyData’ TO DISK = N’C:\mssql2005\backup\AdventureWorks_ReadOnlyData.bak’ WITH NOFORMAT, INIT, NAME = N’AdventureWorks-Readonly File Backup’, SKIP, NOREWIND, NOUNLOAD, STATS = 10