30.06.2013 Views

SQL Server Backup and Restore - Simple Talk

SQL Server Backup and Restore - Simple Talk

SQL Server Backup and Restore - Simple Talk

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: Basics of <strong>Backup</strong> <strong>and</strong> <strong>Restore</strong><br />

So, a partial full backup is akin to a full database backup, but omits all READONLY<br />

filegroups. Likewise, a partial differential backup is akin to a differential database<br />

backup, in that it only backs up data that has been modified since the base partial<br />

backup <strong>and</strong>, again, does not explicitly back up the READONLY filegroups within the<br />

database. Differential partial backups use the last partial backup as the base for any<br />

restore operations, so be sure to keep the base partial on h<strong>and</strong>.<br />

It is recommended to take frequent base partial backups to keep the differential partial<br />

backup file size small <strong>and</strong> manageable. Again, a good rule of thumb is to take a new base<br />

partial backup at least once per week, although possibly more frequently than that if the<br />

read/write filegroups are frequently modified.<br />

Finally, note that we can only perform partial backups via T-<strong>SQL</strong>. Neither <strong>SQL</strong><br />

<strong>Server</strong> Management Studio nor the Maintenance Plan Wizard supports either type<br />

of partial backup.<br />

Recovery Models<br />

A recovery model is a database configuration option, chosen when creating a new<br />

database, which determines whether or not you need to (or even can) back up the transaction<br />

log, how transaction activity is logged, <strong>and</strong> whether or not you can perform more<br />

granular restore types that are available, such as file <strong>and</strong> page restores. All <strong>SQL</strong> <strong>Server</strong><br />

database backup <strong>and</strong> restore operations occur within the context of one of three available<br />

recovery models for that database.<br />

• SIMPLE recovery model – certain operations can be minimally logged. Log backups are<br />

not supported. Point-in-time restore <strong>and</strong> page restore are not supported. File restore<br />

support is limited to secondary data files that are designated as READONLY.<br />

39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!