How make MS SQL full database backups



Creating Database Backup Plans 

1. Create the folders to store the Database backups in the drive, we want to store with the following folders.(Ex: C:\SQL_backup\Full)

2. Open SQL Server Management Studio and connect using windows credentials.

3. Click Management  and select Maintenance Plans.
 
4. Right-Click on Maintenance Plans and select New Maintenance Plans , Give naming Convention as Full_DB_Backup.


5. In Left side of Server Management Studio there will be a Tool Box within Maintenance Plan Tasks



6. Drag and drop the Back Up Database Task and Maintenance Clean Task in the Full_DB_Backup Design area.

7. Right Click on the Back Up Database Task and select Edit.
 

8. Select the Type of Backup you want to do as Full 

9. Select the Database In Database(s)  in these database list (Ex: TestDB.)
  

10. Select Create a Backup file for every database, select Create a sub-directory for each database

11. Give the path where we want to store the database backup as C:\SQL_backup\Full and give the Backup file extension as bak and Click OK

 

12. Right Click on the Maintenance Cleanup Task  and select Edit 

13.  Select Search folders and delete files based on an extension 

14.  Give the Folder Path  C:\SQL_Backup\Full  and give a file extension as bak in the file extension box and select Include first-level sub-folders 

15. File Age:  Give the desired file retention period that how many days of backup you wanted to keep in the backup folder. (Ex: 2 Weeks)
  

16. Click OK 

17. Right Click on the Back Up Database Task,  select Add Precedence Constraint,  Select Back Up Database Task in From and Maintenance Cleanup Task in To from the Control Flow and click OK
 

18. Now you will see a link between Back Up Database Task and Maintenance Cleanup Task. Press Ctrl+S to save the task


19. Go to the SQL Server Agent in the SQL Server Management Studio, Select the Full_DB_Backup and Right Click and select Properties  in the properties sheet select Schedules and click New

 

20. Give some name in the name so that we can identify the Job Schedules

21. Select Weekly in frequency, Recurs every  in 1 week, and select Sunday 

22. Select 11:30:00 PM in Daily frequency and click OK.
  

23. Click Ok in Job properties.

Keywords: Backups, Full Backup, MSSQL Backups, 

Comments

Popular posts from this blog

Observium: Configuring Microsoft Windows 2008 Server SNMP Agent

AWS: Upgrade PV Drivers on Windows Instances

How to configure Incremental backups for MSSQL Database