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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7: Differential <strong>Backup</strong> <strong>and</strong> <strong>Restore</strong><br />

Will differential backups always be smaller than full backups?<br />

For the most part, if you refresh your base backup on a regular schedule, you will find that a differential<br />

backup should be smaller in size than a full database backup. However, there are situations where a<br />

differential backup could become even larger than its corresponding base backup, for example if the base<br />

backup is not refreshed for a long period <strong>and</strong> during that time a large amount of data has been changed<br />

or added. We'll discuss this further shortly, in the Possible issues with differential backups section.<br />

Let's assume that the same moderately-sized production database, mentioned above,<br />

has a backup strategy consisting of a weekly full backup, hourly transaction log backups<br />

<strong>and</strong> daily differential backups. I need to retain on disk, locally, the backups required to<br />

restore the database to any point in the last three days, so that means storing locally the<br />

last three differential backups, the last three days' transaction log backups, plus the base<br />

full backup. The full backup size is about 22 GB, the log backups are, on average, about 3<br />

GB each, <strong>and</strong> 3 days' worth of differential backups takes up another 3 GB, giving a total of<br />

about 28 GB. If I simply took full backups <strong>and</strong> log backups, I'd need almost 70 GB of space<br />

at any time for one database.<br />

Deciding exactly the right backup strategy for a database is a complex process. We want<br />

to strive as far as possible for simplicity, short backup times, <strong>and</strong> smaller disk space<br />

requirements, but at the same time we should never allow such goals to compromise the<br />

overall quality <strong>and</strong> reliability of our backup regime.<br />

Differential backup strategies<br />

In what situations can the addition of differential backups really benefit the overall<br />

database recovery scheme? Are there any other cases where they might be useful?<br />

208

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

Saved successfully!

Ooh no, something went wrong!