Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

SQL Database Log isn't truncating after successful full backup

$
0
0

Hi:

We have a SQL 2012 server hosting a DB roughly 5.5Gb in size, the Database in Full Recovery mode and have two maintenance plans.  One for Database Full Backups and one for backups of the Transaction log.  We noticed that our Trans Log had grown to 80+Gb and we are puzzled as to why.  It was our understanding that the trans log file gets truncated upon a successful trans log backup.

Here is how we have the maintenance plans setup, please let me know if I have something setup incorrectly:

Database Backup Plan:

Schedule = Every 1 day at 2am.

1. Maintenance Cleanup Task
 - Backup Files
 - Search Folder and delete files based on Ext.
  - Folder:  B:\SQL Database Backups
  - File Ext:  bak
  - Include first-level subfolders is checked

 - Delete files based on the age of the file at task run time = 5 days

2. Check Database Integrity Task
 - Databases
  - Specific Databases
   - These Databases
         - DatabaseName

 - Include indexes is checked

3. Rebuild Index Task
 - Secific Databases
        - DatabaseName
 -Object = Tables and Views

 - Free space options
        - Default free space per page is selected

4.Back up Database Task
 - Backup type = Full
 - Specfic Databases
      - DatabaseName
      - Model
      - Master
      - MSDB
 - Create a backup file for every database
       - Create a sub-directory for each database is checked
           - Folder = B:\ SQL Database Backups
           - Backup file extension = bak
 - Verify Backup Integrity is checked
           - Use the default server setting

5. History Cleanup Task
 - Backup and Restore History is checked
 - SQL Server Agent Job History is checked
 - Maintenance Plan History is checked
 
 - Remove Historical data older than:  1 week

Log Backup Plan:

1. Maintenance Cleanup Task
 - Delete files of the following type:
       - Backup Files

 - File location:
  Search folder and delete files based on an extension:
       - Folder = B:\ SQL Log Backups
       - File Extension = trn
  Include first-level subfolders is selected

 - File Age:
  - Delete files based on the age of the file at task run time:
         - 5 days

2. Backup Database Task
 - Backup Type = Transaction Log
 - Backup Set will expire
         - After: 5 Days
 - Back up to:  disk

 - Create a backup file for every databse:
  - Create a sub-directory for each database
          - Folder:  B:\SQL Log Backups
          - Backup file extension:  trn

 - Verify Backup integrity:
      - Use the default server setting

3.  History Cleanup Task
 - Backup and Restore History
 - SQL Server Agent Job History
 - Maintenance Plan History

 - Remove Historical data older than:
        - 5 Days

Thank you,

Stangride


Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>