Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 13

Backup And Restore Ms SQL Server

Doc Author : Al Mamun

Backup can be taken In different ways by different tools. They are given below

Tools are

a. SSMS(SQL Server Management Studio)


b. Sql backup and ftp( Best Third Party Tool for advance schedule backup and more)
c. Sql Query
d. Simple export

Backup Types are

1. Full Backup = Entire Database Backup/Or another copy


2. Differential Backup = After taking full backup to capture the later changes from that time
3. Transaction log backup = It will restore and recover your Schema. Hold all the Transaction logs.

Note:

a. Best practice is that do not take full backup all the time. Once take full backup then take the
differential backup.
b. You should must verify your Backup media.
c. Overwrite is good practice you have another copy of full backup.
d. Don’t use drive or media of host computer to store backup files

Let’s Take the full backup with SSMS

1. Check the SQL Server Configuration Manager for Service is Running or not
2. Open and Connect SQL server management Studio & Connect The Database Engine
--- Just go to windows search button and type SSMS.
3. Then Click Databases and right Click the databases that you want to take backup
4. Select Full & Backup Directory. Do as yours

5. From the Option you can select those option as per your need. Check Overwrite is not a good
practice if you don’t have another copy of backup file. You Can use compression to minimize the
size. Must check verify backup option
6. Backup Successfully Completed

7. Here is a backup Directory where we store the backup.


Taking Differential Backup
1. First Select the DB & Directory

2. Differential Backup Done..


Restoring Databases
1. Right Click on Databases & go as per picture

2. Find the directory where you stored the backup files.

3. It will Automatically show the DB name. Then Click Options


4. Can Select overwrite if you first restore full DB. Must Select Restore with norecovery

5. Restore Done Successfully


Now Restore Differential Backup
1. Database is now still in restore mode…

2. Find the Differential Backup Files


3. Attached files

4. Click Options then Select Restore with no recovery


5. Restore Done with Differential Backup.
Recover Database with Transaction Logs
1. First Right Click the database and go as picture recommendation.

2. Go through as selected items of picture. You can customize as yours

3. From the Options don’t forget to select first Restore with Recovery radio button.
4. Restore and recovery done now your database is up and running

Note:
a. If you take database full backup and don’t have any differential backup. Just Click Restore and
Recovery while restore it

You might also like