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 7: Differential <strong>Backup</strong> <strong>and</strong> <strong>Restore</strong><br />

Advantages of differential backups<br />

Perhaps the first question to answer is why we would want to capture only the changed<br />

data in a backup; why not just take another full backup? The answer is simple: backup<br />

time <strong>and</strong> backup file space utilization. A full database backup process, for a large database,<br />

will be a time- <strong>and</strong> resource-consuming process, <strong>and</strong> it is usually not feasible to run this<br />

process during normal operational hours, due to the detrimental impact it could have on<br />

the performance of end-user <strong>and</strong> business processes. In most cases, a differential database<br />

backup will contain much less data, <strong>and</strong> require much less processing time than a full<br />

database backup. For a large database that is not subject to a huge number of changes, a<br />

differential backup can execute in 10% of the time it would take for a full backup.<br />

For a real-world example, let's consider one of my moderately-sized production databases.<br />

The processing time for a full database backup is usually about 55 minutes. However,<br />

the average differential backup takes only about 4 minutes to complete. This is great,<br />

since I still have a complete set of backups for recovery, but the processing time is greatly<br />

reduced. Remember that the larger a database, the more CPU will be consumed by the<br />

backup operation, the longer the backup operation will take, <strong>and</strong> the greater the risk will<br />

be of some failure (e.g. network) occurring during that operation.<br />

The other saving that we get with a differential backup, over a full backup, is the space<br />

saving. We are only storing the data pages that have been modified since the last full<br />

backup. This is typically a small fraction of the total size, <strong>and</strong> that will be reflected in the<br />

size of the differential backup file on disk. As such, a backup strategy that consists of, say,<br />

one daily full backup plus a differential backup, is going to consume less disk space than<br />

an equivalent strategy consisting of two full backups.<br />

207

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

Saved successfully!

Ooh no, something went wrong!