Backup and Recovery in MS SQL Server. Andrea Imrichová



Similar documents
Backing Up and Restoring the SQL Server 2005 Environment

Restore Scenarios What to keep in mind. Pedro A. Lopes PFE

Backup and Restore Back to Basics with SQL LiteSpeed

SQL Server 2005 Backing Up & Restoring Databases

MS Administering Microsoft SQL Server Databases

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

Designing Database Solutions for Microsoft SQL Server 2012 MOC 20465

Protecting Microsoft SQL Server with Asigra Cloud Backup

Maintaining a Microsoft SQL Server 2008 Database

EMC APPSYNC AND MICROSOFT SQL SERVER A DETAILED REVIEW

Administering Microsoft SQL Server Databases

Course. Overview. Length: 5 Day(s) Published: English. IT Professionals. Level: Type: Method: Delivery. Enroll now (CAL)

SQL Server 2014

6231A - Maintaining a Microsoft SQL Server 2008 Database

Administering Microsoft SQL Server Databases MOC 20462

Backup and Restore Strategies for SQL Server Database. Nexio Motion. 10-February Revsion: DRAFT

Nexio Motion 4 Database Backup and Restore

MOC 20462C: Administering Microsoft SQL Server Databases

SQL Server for Database Administrators Course Syllabus

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Microsoft SQL Database Administrator Certification

Course Syllabus. At Course Completion

Exam : Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 2. Title : The safer, easier way to help you pass any IT exams.

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

Microsoft SQL Server 2014: MS SQL Server Administering Databases

NUTECH COMPUTER TRAINING INSTITUTE 1682 E. GUDE DRIVE #102, ROCKVILLE, MD WEB: TEL:

Basic knowledge of the Microsoft Windows operating system and its core functionality Working knowledge of Transact-SQL and relational databases

Administering Microsoft SQL Server Databases

Nimble Storage Best Practices for Microsoft SQL Server

BACKING UP A DATABASE

BACKUP & RESTORE (FILE SYSTEM)

Course Outline:

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

SAP Note FAQ: SAP HANA Database Backup & Recovery

MCTS Microsoft SQL Server 2005 Implementation & Maintenance

ADMINISTERING MICROSOFT SQL SERVER DATABASES

Administering Microsoft SQL Server Databases

Administration GUIDE. SQL Server idataagent. Published On: 11/19/2013 V10 Service Pack 4A Page 1 of 240

Backup and Disaster Recovery Restoration Guide

Redundancy Options. Presented By: Chris Williams

Database Server Maintenance Plan

Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills Course 6317A: Three days; Instructor-Led

SQL LiteSpeed 3.0 Best Practices

Administering Microsoft SQL Server Databases 20462C; 5 days

Course: Administering Microsoft SQL Server Databases Overview

How To Restore Your From Backup On An Exchange Service Pack 1 On A Windows (Windows 7) On A Microsoft Powerbook (Windows) On An Ubuntu 2003 Power

Administering Microsoft SQL Server Databases

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

20462C: Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server 2012 Databases

20462 Administering Microsoft SQL Server Databases

This article Includes:

Protecting SQL Server Databases Software Pursuits, Inc.

Administration GUIDE. Exchange Database idataagent. Published On: 11/19/2013 V10 Service Pack 4A Page 1 of 233

Backups and Maintenance

Yiwo Tech Development Co., Ltd. EaseUS Todo Backup. Reliable Backup & Recovery Solution. EaseUS Todo Backup Solution Guide. All Rights Reserved Page 1

How To Use A Microsoft Microsoft Database Server 2012

How To Backup A Database In Navision

Designing and Deploying Messaging Solutions with Microsoft Exchange Server 2010 Service Pack B; 5 days, Instructor-led

1.0 Doors.Net Database Backup Microsoft SQL Server 2005 Studio Express

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft SQL Server

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

MS-10775: Administering Microsoft SQL Server 2012 Databases. Course Objectives. Required Exam(s) Price. Duration. Methods of Delivery.

Technical Notes. EMC NetWorker Performing Backup and Recovery of SharePoint Server by using NetWorker Module for Microsoft SQL VDI Solution

SQL Server 2012/2014 AlwaysOn Availability Group

Exam Number/Code : Exam Name: Name: PRO:MS SQL Serv. 08,Design,Optimize, and Maintain DB Admin Solu. Version : Demo.

1 of 10 1/31/2014 4:08 PM

MS Design, Optimize and Maintain Database for Microsoft SQL Server 2008

50238: Introduction to SQL Server 2008 Administration

Administering Microsoft SQL Server 2012 Databases

Copyright Acronis, Inc.,

Administering Microsoft SQL Server Databases

Backup and Recovery for Microsoft SQL Server Using EMC Data Domain Deduplication Storage Systems

Administering Microsoft SQL Server Databases

Administering a SQL Database Infrastructure (MS )

MS 20465: Designing Database Solutions for Microsoft SQL Server 2012

Microsoft SQL Server Best Practices with Data Domain Deduplication Storage

Features - Microsoft Data Protection Manager

Designing Database Solutions for Microsoft SQL Server 2012

BrightStor ARCserve Backup for Windows

Microsoft Exchange Server Backup Options

form approved June/2006 revised Nov Page 1 of 7

Course 20462C: Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server 2012 Databases

MOC Administering Microsoft SQL Server 2014 Databases

Administering Microsoft SQL Server Databases

Designing, Optimizing and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Support Document: Microsoft SQL Server - LiveVault 7.6X

4 Backing Up and Restoring System Software

Course Syllabus. Maintaining a Microsoft SQL Server 2005 Database. At Course Completion

EMC NetWorker Module for Microsoft for SQL and SharePoint VSS User Guide

TABLE OF CONTENTS. Quick Start - Windows File System idataagent. Page 1 of 44 OVERVIEW SYSTEM REQUIREMENTS DEPLOYMENT

Administering Microsoft SQL Server Databases

How to protect, restore and recover SQL 2005 and SQL 2008 Databases

Version: Page 1 of 5

WHITE PAPER PPAPER. Symantec Backup Exec Quick Recovery & Off-Host Backup Solutions. for Microsoft Exchange Server 2003 & Microsoft SQL Server

Below are the some of the new features of SQL Server that has been discussed in this course

ExecuTrain Course Outline MOC 6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

Transcription:

Backup and Recovery in MS SQL Server Andrea Imrichová

Types of Backups copy-only backup database backup differential backup full backup log backup file backup partial backup

Copy-Only Backups without affecting the overall backup and restore procedures for the database recorded in the is_copy_only column of the backupset table.

Database backup represent the whole database at the time the backup finished.

Differential backup only the data extents that have changed in the filegroups since the previous partial backup, known as the base for the differential.

Full backup contains all the data in a specific database Partial backup data from only some of the filegroups

Backup devices backup disk media set physical backup device maximum size free disk space backup disk - different than the database data and log disks

Specifying a Backup File by Using its Physical Name BACKUP DATABASE database_name TO DISK = { 'physical_backup_device_name' @physical_backup_device_name_var } BACKUP DATABASE AdventureWorks2012 GO TO DISK = 'Z:\SQLServerBackups\AdventureWorks2012.bak'; --------- RESTORE { DATABASE LOG } database_name FROM DISK = { 'physical_backup_device_name' @physical_backup_device_name_var }

Backing Up to a File on a Network Share permissions needed to read/write Universal Naming Convention (UNC) \\Systemname\ShareName\Path\FileName BACKUP DATABASE AdventureWorks2012 TO DISK = '\\BackupSystem\BackupDisk1\AW_backups\AdventureWorksData.Bak'; GO

Logical backup device user-defined name points to a specific physical backup device must be unique sys.backup_devices - to view the existing logical device names BACKUP DATABASE AdventureWorks2012 GO TO AdventureWorksBackups;

Mirrored Backup Media Sets increases the reliability of backups by providing redundancy damaged ->no longer usable mirrored media: 2-4 mirrors

Backup Compression From SQL Server 2014 Compressed and uncompressed backups cannot coexist in a media set. low-priority compressed backups - Resource Governor backup_size:compressed_backup_size Factors: type of data, consistency of the data, encryption, if its compressed SELECT backup_size/compressed_backup_size FROM msdb..backupset;

Media Families Backups created on a single nonmirrored device or a set of mirrored devices in a media set Each disk/tape - media sequence number

Media header Contained in backup media Informations: Name, sequence number of the media family, unique vendor identification number, etc. Standard backup format Microsoft Tape Format(MTF)

Backup Sets successful backup operation adds a single backup set to the media set. backup media (only one media family) entire backup set (multiple media families) backup distributed

BACKUP DATABASE AdventureWorks2012 TO TAPE = '\\.\tape0', TAPE = '\\.\tape1', TAPE = '\\.\tape2 WITH FORMAT, MEDIANAME = 'MyAdvWorks_MediaSet_1'

The number of backup media in a media set depends on several factors: Number of backup devices Type of backup devices Number of backup sets

Creating a New Media Set format the backup media Changes in the backup media: 1. deletes the old header (if any) 2. deletes all previous contents of the currently mounted tape 3. writes a new media header

Backing Up to an Existing Media Set 1. Append to the existing backup set. 2. Overwrite all existing backup sets with the current backup, leaving the current media header in place.

Appending to Existing Backup Sets default Backups performed at different times from the same or different databases only at the end

Overwriting Backup Sets is specified by using the INIT option preserve the media header, if any Backup media is not overwritten if: The existing backups on the media have not expired (SKIP) The media name, if provided, does not match the name on the backup media.

Restore and Recovery Overview The database (a complete database restore) The data file (a file restore) The data page (a page restore)

Recovery Models designed to control transaction log maintenance is a database property Three recovery models exist: simple, full, and bulk-logged A database can be switched to another recovery model at any time

Simple recovery model Requires no log backups Automatically reclaims log space to keep space requirements small Operations that require transaction log backups are not supported Cannot be used: Log shipping AlwaysOn or Database mirroring Media recovery without data loss Point-in-time restores

Full recovery model Requires log backups. No work is lost due to a lost or damaged data file. Can recover to an arbitrary point in time

Bulk logged recovery model Requires log backups. An adjunct of the full recovery model Reduces log space usage by using minimal logging If the log is damaged or bulk-logged operations occurred since the most recent log backup changes redone

Restore scenarios Complete database restore File restore Page restore Piecemeal restore

SQL Server backup cannot be restored by a version of SQL Server that is older than the version that created the backup. The Database Recovery Advisor