- SQL Server 2017 Administrator's Guide
- Marek Chmel Vladimír Mu?n?
- 295字
- 2021-07-02 21:51:39
Backup media
In previous chapters, we worked with backups stored to disk files. It's a very common destination of backup because tape drive as a backup destination must be attached directly to the server. Due to the usual usage of backup tape devices to back up overall company infrastructures, SQL Server does not improve tape backup possibilities and relies on third-party backups. That's why all the following examples will use disk files as the backup device.
If SQL Server databases are going to be backed up by third-party backup devices, never mix the execution of these backups with SQL Server native backup!
When we need to improve the speed of the backup, we can join more backup places into one set called media set. The media set is formed of one or more devices of the same type. SQL Server spreads data across all devices in the media set evenly. We can imagine the media set as a striped disk. The media set is created the first time the backup is executed. The following example creates a media set:
BACKUP DATABASE <database name> TO
DISK = '<path to first file>',
DISK = '<path to second file>'
WITH
MEDIANAME = '<name of the media set>'
Every backup saved to the same media set is then called backup set. Once the media set is created, it must be used as a whole. An attempt to use one of the files for additional backup without using the whole media set will fail. Using media sets makes backup operations faster, but it also increases the risk of backup loss.
Let's see the following example:
BACKUP DATABASE <database name> TO
DISK = '<path to first file>'
-- second file from previous example is not used
WITH
FORMAT
The FORMAT option causes the media set to break and all backups saved there are lost! So use media sets carefully.
- 大學(xué)計(jì)算機(jī)信息技術(shù)導(dǎo)論
- 亮劍.NET:.NET深入體驗(yàn)與實(shí)戰(zhàn)精要
- Dreamweaver CS3 Ajax網(wǎng)頁(yè)設(shè)計(jì)入門與實(shí)例詳解
- Microsoft Dynamics CRM Customization Essentials
- 21天學(xué)通C#
- Embedded Programming with Modern C++ Cookbook
- R Machine Learning Projects
- 未來學(xué)徒:讀懂人工智能飛馳時(shí)代
- 基于Proteus的PIC單片機(jī)C語(yǔ)言程序設(shè)計(jì)與仿真
- Moodle 2.0 Course Conversion(Second Edition)
- Flash CS3動(dòng)畫制作
- Microsoft 365 Mobility and Security:Exam Guide MS-101
- Learning OpenShift
- Ubuntu 9 Linux應(yīng)用基礎(chǔ)
- 樂高機(jī)器人:Scratch與WeDo編程基礎(chǔ)實(shí)戰(zhàn)應(yīng)用