SlideShare a Scribd company logo
SUBMITTED TO-
Er. Beena Awasthi
SUBMITTED BY-
Anshu Maurya (005)
Subhi Agnihotri (033)
Backup and Recovery of SQL Server Database
 Introduction
 How to create a full “Database Backup”
 How to restore from “Backup”
 Advantages of using Database Backup
 Drawbacks and Limitations
 Conclusion
 In SQL Server we can create database backup in 3 ways
• Full – creates a complete backups of database as well as part of
transaction log, so the database can be recovered.
• Differential – a data backup that is based on the latest full backup
of a complete or partial database. It contains only those extends that
have changed since the last full backup.
• Transaction Log – A backup of transaction logs that includes all
log records that were not backed up in a previous log backup. It
allows us to backup the active part of the transaction log.
 Right click on the database that you want to backup
Then, Select "Tasks" and click on "Back Up”.
 Now, Select the Backup type “Full” to create a full database
backup and “Add” backup location.
 Give file name and Click “OK”.
 Again, Click on “Ok” to create full database backup.
• Right click on the database and click on “Restore
Database”.
 Protects you from potentially catastrophic data loss.
o Backups of a database are useful for routine administrative
purposes.
 With valid backups of a database, you can recover your data
from many failures, such as:
• Media failure.
• User errors, for example, dropping a table by mistake.
• Hardware failures, for example, a damaged disk drive or
permanent loss of a server.
• Natural disasters.
 Due to a full backup of the database, every time space
required might develop into an issue.
 In case of a disaster, recovery is only possible since the last
FULL backup.
 Backups created by more recent versions of SQL server
cannot be restored in earlier versions of SQL Server
(doesn’t allows downgrading).
 Database created in lower versions of SQL server takes
more time to restore in higher versions due to the upgrade
process of database.
 DBA must be prepared for situations where a failure impacts the
availability, integrity or usability of a database.
 Reacting to failures and disruptions is a key component of DBA’s
job.
 The idea of creating a database backup and restoring them when
they are needed creates space overhead wherever we save the
backup copy.
 But it has saved many business industries and other organizations
from loss of millions or billion dollars.

More Related Content

What's hot

Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
Vimlendu Kumar
 
Oracle data pump
Oracle data pumpOracle data pump
Oracle data pump
marcxav72
 
Direct SGA access without SQL
Direct SGA access without SQLDirect SGA access without SQL
Direct SGA access without SQL
Kyle Hailey
 

What's hot (20)

Backup And Recovery
Backup And RecoveryBackup And Recovery
Backup And Recovery
 
BACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMSBACKUP & RECOVERY IN DBMS
BACKUP & RECOVERY IN DBMS
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
 
Performance tuning in sql server
Performance tuning in sql serverPerformance tuning in sql server
Performance tuning in sql server
 
Oracle data pump
Oracle data pumpOracle data pump
Oracle data pump
 
Presentation Oracle Undo & Redo Structures
Presentation Oracle Undo & Redo StructuresPresentation Oracle Undo & Redo Structures
Presentation Oracle Undo & Redo Structures
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
 
Direct SGA access without SQL
Direct SGA access without SQLDirect SGA access without SQL
Direct SGA access without SQL
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
 
How to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsHow to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata Environments
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Less10 undo
Less10 undoLess10 undo
Less10 undo
 

Similar to Backup and recovery in sql server database

Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup Exam
Inprise Group
 
Help! my sql server log file is too big!!! tech republic
Help! my sql server log file is too big!!!   tech republicHelp! my sql server log file is too big!!!   tech republic
Help! my sql server log file is too big!!! tech republic
Kaing Menglieng
 
Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup exam
sriram raj
 
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
honey725342
 
DBA, LEVEL III TTLM Monitoring and Administering Database.docx
DBA, LEVEL III TTLM Monitoring and Administering Database.docxDBA, LEVEL III TTLM Monitoring and Administering Database.docx
DBA, LEVEL III TTLM Monitoring and Administering Database.docx
seifusisay06
 
Managing SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBAManaging SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBA
Concentrated Technology
 
HTG-SQL Server 2005 - Backup & Recovery.pdf
HTG-SQL Server 2005 - Backup & Recovery.pdfHTG-SQL Server 2005 - Backup & Recovery.pdf
HTG-SQL Server 2005 - Backup & Recovery.pdf
Sami Asmar
 

Similar to Backup and recovery in sql server database (20)

my final ppresenntation.pptx
my final ppresenntation.pptxmy final ppresenntation.pptx
my final ppresenntation.pptx
 
database backup and recovery
database backup and recoverydatabase backup and recovery
database backup and recovery
 
How to backup sql
How to backup sqlHow to backup sql
How to backup sql
 
Sql server lesson10
Sql server lesson10Sql server lesson10
Sql server lesson10
 
Oracle OCP Backup Exam
Oracle OCP Backup ExamOracle OCP Backup Exam
Oracle OCP Backup Exam
 
Help! my sql server log file is too big!!! tech republic
Help! my sql server log file is too big!!!   tech republicHelp! my sql server log file is too big!!!   tech republic
Help! my sql server log file is too big!!! tech republic
 
Oracle ocp backup exam
Oracle ocp backup examOracle ocp backup exam
Oracle ocp backup exam
 
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx1 ISACA JOURNAL  VOLUME 1, 2012FeatureThe ability to r.docx
1 ISACA JOURNAL VOLUME 1, 2012FeatureThe ability to r.docx
 
Managing SQLserver
Managing SQLserverManaging SQLserver
Managing SQLserver
 
MySQL Enterprise Backup
MySQL Enterprise BackupMySQL Enterprise Backup
MySQL Enterprise Backup
 
MS SQL Backups explained by a DBA
MS SQL Backups explained by a DBAMS SQL Backups explained by a DBA
MS SQL Backups explained by a DBA
 
DBA, LEVEL III TTLM Monitoring and Administering Database.docx
DBA, LEVEL III TTLM Monitoring and Administering Database.docxDBA, LEVEL III TTLM Monitoring and Administering Database.docx
DBA, LEVEL III TTLM Monitoring and Administering Database.docx
 
Restore Backup SQL Data
Restore Backup SQL DataRestore Backup SQL Data
Restore Backup SQL Data
 
Managing SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBAManaging SQLserver for the reluctant DBA
Managing SQLserver for the reluctant DBA
 
MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR Scenarios
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018 Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
 
Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319Unit no 5 transation processing DMS 22319
Unit no 5 transation processing DMS 22319
 
Backup beyond just a strategy with SQL Server
Backup beyond just a strategy with SQL ServerBackup beyond just a strategy with SQL Server
Backup beyond just a strategy with SQL Server
 
HTG-SQL Server 2005 - Backup & Recovery.pdf
HTG-SQL Server 2005 - Backup & Recovery.pdfHTG-SQL Server 2005 - Backup & Recovery.pdf
HTG-SQL Server 2005 - Backup & Recovery.pdf
 
Microsoft SQL High Availability and Scaling
Microsoft SQL High Availability and ScalingMicrosoft SQL High Availability and Scaling
Microsoft SQL High Availability and Scaling
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 

Backup and recovery in sql server database

  • 1. SUBMITTED TO- Er. Beena Awasthi SUBMITTED BY- Anshu Maurya (005) Subhi Agnihotri (033) Backup and Recovery of SQL Server Database
  • 2.  Introduction  How to create a full “Database Backup”  How to restore from “Backup”  Advantages of using Database Backup  Drawbacks and Limitations  Conclusion
  • 3.  In SQL Server we can create database backup in 3 ways • Full – creates a complete backups of database as well as part of transaction log, so the database can be recovered. • Differential – a data backup that is based on the latest full backup of a complete or partial database. It contains only those extends that have changed since the last full backup. • Transaction Log – A backup of transaction logs that includes all log records that were not backed up in a previous log backup. It allows us to backup the active part of the transaction log.
  • 4.  Right click on the database that you want to backup Then, Select "Tasks" and click on "Back Up”.
  • 5.  Now, Select the Backup type “Full” to create a full database backup and “Add” backup location.
  • 6.  Give file name and Click “OK”.
  • 7.  Again, Click on “Ok” to create full database backup.
  • 8. • Right click on the database and click on “Restore Database”.
  • 9.
  • 10.
  • 11.
  • 12.  Protects you from potentially catastrophic data loss. o Backups of a database are useful for routine administrative purposes.  With valid backups of a database, you can recover your data from many failures, such as: • Media failure. • User errors, for example, dropping a table by mistake. • Hardware failures, for example, a damaged disk drive or permanent loss of a server. • Natural disasters.
  • 13.  Due to a full backup of the database, every time space required might develop into an issue.  In case of a disaster, recovery is only possible since the last FULL backup.  Backups created by more recent versions of SQL server cannot be restored in earlier versions of SQL Server (doesn’t allows downgrading).  Database created in lower versions of SQL server takes more time to restore in higher versions due to the upgrade process of database.
  • 14.  DBA must be prepared for situations where a failure impacts the availability, integrity or usability of a database.  Reacting to failures and disruptions is a key component of DBA’s job.  The idea of creating a database backup and restoring them when they are needed creates space overhead wherever we save the backup copy.  But it has saved many business industries and other organizations from loss of millions or billion dollars.