This document discusses backup and recovery of SQL Server databases. It explains that there are three types of database backups: full, differential, and transaction log backups. It provides steps for creating a full database backup and restoring from a backup. Backups protect from data loss due to failures like hardware issues, user errors, or disasters. However, backups require storage space and recovery is only possible from the last full backup. Regular backups are important for database administration and disaster recovery.
3. Introduction
How to create a full “Database Backup”
How to restore from “Backup”
Advantages of using Database Backup
Drawbacks and Limitations
Conclusion
4. 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.
5. Right click on the database that you want tobackup
Then, Select "Tasks" and click on "Back Up”.
6. Now, Select the Backup type “Full” to create a fulldatabase
backup and “Add” backup location.
9. • Right click on the database and click on “Restore
Database”.
10.
11.
12.
13. 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.
14. 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.
15. 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.