Recovery Models
All SQL Server database backup, restore, and recovery
operations are based on one of three available recovery models:
Simple
Full
Bulk-Logged
Recovery model |
Description |
Work loss exposure |
Recover to point in time? |
Simple |
No log backups. |
Changes since the most recent backup are unprotected. In
the event of a disaster, those changes must be redone. |
Can recover only to the end of a backup. |
Full |
Requires log backups. |
Normally none. |
Can recover to a specific point in time, assuming that
your backups are complete up to that point in time. For information about
using log backups to restore to the point of failure. |
Bulk logged |
Requires log backups. |
If the log is damaged or bulk-logged operations occurred
since the most recent log backup, changes since that last backup must be
redone. |
Can recover to the end of any backup. Point-in-time
recovery is not supported. |
Recovery models and supported restore
operations
The
restore operations that are available for a database depend on its recovery
model. The following table summarizes whether and to what extent each of the
recovery models supports a given restore scenario.
RECOVERY MODELS AND SUPPORTED RESTORE OPERATIONS |
|||
Restore operation |
Full recovery model |
Bulk-logged recovery model |
Simple recovery model |
Data recovery |
Complete recovery (if the log is available). |
Some data-loss exposure. |
Any data since last full or differential backup is lost. |
Point-in-time restore |
Any time covered by the log backups. |
Disallowed if the log backup contains any bulk-logged
changes. |
Not supported. |
File restore * |
Full support. |
Sometimes.** |
Available only for read-only secondary files. |
Page restore * |
Full support. |
Sometimes.** |
None. |
Piecemeal (filegroup-level) restore * |
Full support. |
Sometimes.** |
Available only for read-only secondary files. |
No comments:
Post a Comment