17.07.2015 Views

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

The Art of SQL Server FILESTREAM - Red Gate Software

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 8: Backup and Restore for<strong>FILESTREAM</strong> DatabasesOne <strong>of</strong> the benefits <strong>of</strong> the <strong>FILESTREAM</strong> feature over the traditional methods <strong>of</strong> storingthe BLOB data in the file system is that a <strong>FILESTREAM</strong> database backup contains boththe relational data and the BLOB data stored in the <strong>FILESTREAM</strong> data container. Thisremoves the administrative overhead <strong>of</strong> having to maintain separate backups <strong>of</strong> thedisk files, which is necessary when using traditional BLOB storage methods. Likewise,when the full backup <strong>of</strong> a <strong>FILESTREAM</strong> database is restored to another location, the<strong>FILESTREAM</strong> data is also restored, and is available along with the relational data.<strong>The</strong> backup process for a <strong>FILESTREAM</strong>-enabled database is the same as that for anon-<strong>FILESTREAM</strong> database; the BACKUP statement is the same, regardless <strong>of</strong> whetheror not the database being processed has the <strong>FILESTREAM</strong> feature enabled. <strong>The</strong> restoreoperation, however, is a little different for a <strong>FILESTREAM</strong>-enabled database since we needto specify the path where the <strong>FILESTREAM</strong> filegroups should be restored.In this chapter, we will examine the points below.• How to perform full, differential, and log backups for <strong>FILESTREAM</strong> databases; this isno different than for any standard database.• How to restore a <strong>FILESTREAM</strong> database from a full backup, and how to perform apoint-in-time restore.• File backups and piecemeal restores to bring a database back online with only therelational data.• Data and backup compression for <strong>FILESTREAM</strong> databases.• <strong>The</strong> issue <strong>of</strong> garbage files being included in <strong>FILESTREAM</strong> database backups.312

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

Saved successfully!

Ooh no, something went wrong!