{"id":33614,"date":"2020-11-29T20:02:43","date_gmt":"2020-11-29T16:02:43","guid":{"rendered":"https:\/\/www.msp360.com\/resources\/?p=33614"},"modified":"2025-05-07T13:31:29","modified_gmt":"2025-05-07T09:31:29","slug":"sql-server-transaction-log-backup","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/sql-server-transaction-log-backup\/","title":{"rendered":"Microsoft SQL Server Transaction Log Backup"},"content":{"rendered":"<p>A <strong>transaction log<\/strong>, also called a <strong>T-log<\/strong>, is a running list of transactions that change either the data in the database or the structure of the database. Each database modification is a transaction; as changes are made to a database, log records are added to the log file. Transaction log can be used to minimize data loss if the disaster or a database corruption occurs.<br \/>\n<!--more--><\/p>\n<p>In this article, we\u2019ll discuss how to create and manage your backups.<\/p>\n<h2>What Is a Transaction Log?<\/h2>\n<p>Transaction log is a list of records for all Microsoft SQL database changes. It is an essential component of the SQL Server database. If there is a system failure, you will be able to use the T-log to bring your database back to a consistent state before the point of failure.<\/p>\n<div class=\"call-to-action\">\n<div class=\"call-to-action__left\">\n<div class=\"call-to-action__tag\">FREE WHITEPAPER<\/div>\n<div class=\"call-to-action__title\">SQL Server Backup and Recovery<\/div>\n<div class=\"call-to-action__text\">Check out the ultimate guide with best practices for MSPs:<\/div>\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-9ed03d9c-f81b-4305-917a-03488ba39bf3\" data-portal=\"5442029\" data-id=\"9ed03d9c-f81b-4305-917a-03488ba39bf3\"><span class=\"hs-cta-node hs-cta-9ed03d9c-f81b-4305-917a-03488ba39bf3\" id=\"hs-cta-9ed03d9c-f81b-4305-917a-03488ba39bf3\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/9ed03d9c-f81b-4305-917a-03488ba39bf3\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-9ed03d9c-f81b-4305-917a-03488ba39bf3\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/9ed03d9c-f81b-4305-917a-03488ba39bf3.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div>\n<div class=\"call-to-action__right\"><img decoding=\"async\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2019\/07\/The-Ultimate-MSP-Guide-to-MS-SQL-Server-Backup-and-Recovery.png\" alt=\"Exchange WP icon\" \/><\/div>\n<\/div>\n<h2>What Is a Transaction Log Backup?<\/h2>\n<p>Transaction log backup is a backup technique that requires the copy of a transaction log. With it, you can recover the database to any point in time since the last T-log backup.<\/p>\n<blockquote><p>You need to perform a full backup before you can create any T-log backups.<\/p><\/blockquote>\n<p>In general, transaction log backup can be thought of as the equivalent of <a href=\"https:\/\/www.msp360.com\/resources\/blog\/incremental-backup-guide\/\">incremental backup<\/a>, applied to SQL backup. In other words, it\u2019s the granular backup that copies incremental changes in the given dataset. In essence, transaction log backup is enough to be able to recover a failed Microsoft SQL database to the working state. However, it is advisable to perform a full chain of MS SQL backup, including the full <a href=\"https:\/\/www.msp360.com\/resources\/blog\/database-backup-best-practices\/\">database backup<\/a>, the differential backup, and <strong>up to the T-log backup up to the required point in time<\/strong>.<\/p>\n<h2><a name=\"models\"><\/a>T-log Backup and Truncation in Different Recovery Models<\/h2>\n<p id=\"last\">Transaction log records tend to grow over time and may fill up the entire disk, which can bring the whole database to the hault. T-log truncation clears the log by marking the space in the log file as reusable, so that new transactions can be written to the log file.<\/p>\n<div id=\"slidebox\"><a class=\"close\">\u00a0<\/a><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-3032fa20-c25d-4554-b82e-0e1d01d94ecd\" data-portal=\"5442029\" data-id=\"3032fa20-c25d-4554-b82e-0e1d01d94ecd\"><span class=\"hs-cta-node hs-cta-3032fa20-c25d-4554-b82e-0e1d01d94ecd\" id=\"hs-cta-3032fa20-c25d-4554-b82e-0e1d01d94ecd\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/3032fa20-c25d-4554-b82e-0e1d01d94ecd\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3032fa20-c25d-4554-b82e-0e1d01d94ecd\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/3032fa20-c25d-4554-b82e-0e1d01d94ecd.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code --><\/div>\n<p>T-log truncation does not free up disk space. Instead, it makes the previously used log space available for new transactions. You should avoid shrinking the physical log files, as that process can cause database performance issues.<\/p>\n<blockquote><p>If you run a database in full or bulk-logged recovery model, then transaction logs must be backed up. Transaction log truncation happens after each successful backup automatically.<\/p><\/blockquote>\n<p>Once backed up, the transaction log is cleared and space is now available for new transactions. Without backups, the log files will continue to grow until the drive runs out of space and you either will have to perform a backup immediately or clear the log files manually, which may end up in either the corruption of, or performance issues with your database.<\/p>\n<p>If you need to restore the database, the data loss in full or bulk-logged recovery models will very likely be the transactions that ran after the last T-log backup.<br \/>\n<strong>A bulk-logged model<\/strong> might not allow a point-in-time recovery if a minimally logged operation took place. This is why in most cases it is not recommended to use a bulk-logged model.<\/p>\n<blockquote><p>If you run a database in a simple recovery model, you cannot back up transaction logs; instead, the truncation process happens automatically once the logs fill up the T-log file.<\/p><\/blockquote>\n<div id=\"slidebox\"><a class=\"close\">\u00a0<\/a><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-15de95d7-79cb-4945-b80d-11e3dbd96d60\" data-portal=\"5442029\" data-id=\"15de95d7-79cb-4945-b80d-11e3dbd96d60\"><span class=\"hs-cta-node hs-cta-15de95d7-79cb-4945-b80d-11e3dbd96d60\" id=\"hs-cta-15de95d7-79cb-4945-b80d-11e3dbd96d60\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/15de95d7-79cb-4945-b80d-11e3dbd96d60\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-15de95d7-79cb-4945-b80d-11e3dbd96d60\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/15de95d7-79cb-4945-b80d-11e3dbd96d60.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code --><\/div>\n<p>However, you could have a database in full recovery model running T-log backups every 4 hours and a database in simple recovery model running differential backups every hour. Under these circumstances, the database in a simple recovery model might experience less data loss.<\/p>\n<h2>SQL Server Transaction Log Backup Best Practices<\/h2>\n<p>Your backup and recovery strategy should minimize the potential for data loss and maximize data availability. At the same time, it should reflect specific business requirements, and be able to adapt according to resource availability.<\/p>\n<p><span class=\"further-reading \">Further reading<\/span> <a href=\"https:\/\/www.msp360.com\/resources\/blog\/backup-best-practices-for-msps\/\">Backup Best Practices for MSPs<\/a><\/p>\n<p>Keep in mind the following recommendations:<\/p>\n<blockquote><p>Start with creating a full database backup.<\/p><\/blockquote>\n<p>Backups cannot be used by themselves. Instead, they should be used along with full and <a href=\"https:\/\/www.msp360.com\/resources\/blog\/microsoft-sql-server-differential-backup\/\">differential SQL Server backups<\/a> (differential backup is optional but strongly recommended). The full backup serves as the starting point for subsequent differential and transaction log backup, otherwise they won't be created.<\/p>\n<blockquote><p>The main feature of any <a href=\"https:\/\/www.msp360.com\/resources\/blog\/backup-vs-disaster-recovery\/\">backup and disaster recovery<\/a> plan is the ability to recover fast. But what exactly is a fast recovery? The business decision makers would want you to be able to recover the database to the nearest possible state in time, but the fact of the matter is, that you are not always able to perform backups at the wanted schedule. Sometimes your server is not ready to perform frequent backups, other times, you simply don\u2019t have the required storage space.<\/p>\n<p>Thus, to define the right schedule for your backups, you should get to the drawing board and define the essential disaster recovery metrics, <a href=\"https:\/\/www.msp360.com\/resources\/blog\/rto-vs-rpo\/\">the recovery time and the recovery point objectives (RTO and RPO)<\/a>. These will allow you to define, how critical your MS SQL data is, and propose the backup technique and frequency, that will be optimal for your business case.<\/p><\/blockquote>\n<p>If you cannot withstand losing more than 15 minutes' worth of work, then you\u2019ll set your transaction log backup frequency in such a way that backups occur at least every 15 minutes. It\u2019s that simple.<\/p>\n<p>If you cannot withstand losing more than 15 minutes' worth of work, then you\u2019ll set your transaction log backup frequency in such a way that backups occur at least every 15 minutes. It\u2019s that simple.<\/p>\n<p>If your business requires you to minimize your risk of data loss, perform log backups more frequently. Doing so offers the added advantage of increasing the frequency of log truncation, resulting in smaller log files.<\/p>\n<blockquote><p>Use transaction log backups for point-in-time recovery and maximum data protection in case of a database disaster.<\/p><\/blockquote>\n<p>If a disaster occurs, you will first recover the full database backup, and then recover the last differential backup. After that, you can restore the necessary log backups in sequence <strong>up to the needed point in time<\/strong>.<\/p>\n<p>Even if a backup comprises 30 minutes of activity (say 3:00 - 3:30 PM), you can tell SQL Server you only want to restore transactions up until 3:22 PM. This is an important feature for point-in-time restores, as it allows the administrator to restore a database to a point just before a problem occurred.<\/p>\n<blockquote><p>Develop a <a href=\"https:\/\/www.msp360.com\/resources\/blog\/best-backup-schedule-for-small-business\/\">backup schedule<\/a>.<\/p><\/blockquote>\n<p>To limit the number of log backups that you need to restore, it is necessary to routinely back up your data. For example, schedule a weekly full database backup and daily differential database backups.<\/p>\n<div class=\"call-to-action\">\n<div class=\"call-to-action__left\" style=\"width: 65%;\">\n<div class=\"call-to-action__tag\">FREE WHITEPAPER<\/div>\n<div class=\"call-to-action__title\">Guide to Backup Types<\/div>\n<div class=\"call-to-action__text\">Which type of backup is right for your needs?<br \/>\nLearn in our whitepaper:<\/div>\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-5f90acef-7e19-46bb-be06-9e418139a1e1\" data-portal=\"5442029\" data-id=\"5f90acef-7e19-46bb-be06-9e418139a1e1\"><span class=\"hs-cta-node hs-cta-5f90acef-7e19-46bb-be06-9e418139a1e1\" id=\"hs-cta-5f90acef-7e19-46bb-be06-9e418139a1e1\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/5f90acef-7e19-46bb-be06-9e418139a1e1\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-5f90acef-7e19-46bb-be06-9e418139a1e1\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/5f90acef-7e19-46bb-be06-9e418139a1e1.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div>\n<div class=\"call-to-action__right\" style=\"width: 35%;\"><img decoding=\"async\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2019\/07\/Types-of-Backup-WP-icon.png\" alt=\"Whitepaper icon\" \/><\/div>\n<\/div>\n<p>If you are running a database using a recovery model that doesn\u2019t automatically truncate the transaction logs (full or bulk-logged models), you need to run T-log backups. Otherwise, the old transactions are never cleared out and the amount of data in the log will continue to grow. Eventually, you will run out of the disk space and MS SQL Server will not let you make any more modifications to the database.<\/p>\n<blockquote><p>Do not store backups on the same site as a production database.<\/p><\/blockquote>\n<p>If a transaction log is damaged, work that has been performed since the most recent valid backup is lost. You may face server room physical damage or force-majeure circumstances, which happen at a much higher frequency than you might think. The best solution is to mix both local and off-site backups using, for example, cloud storage systems.<\/p>\n<p><span class=\"further-reading \">Further reading<\/span> <a href=\"https:\/\/www.msp360.com\/resources\/blog\/following-3-2-1-backup-strategy\/\">3-2-1 Backup: What It Means and How to Achieve It<\/a><\/p>\n<h2>Running an SQL Server Transaction Log Backup<\/h2>\n<p>There is a set of options that allow you to run T-log backups:<\/p>\n<ul>\n<li style=\"font-weight: 400;\">T-SQL - the scripting language that provides BACKUP commands that can be scripted and executed from your query tool.<\/li>\n<li style=\"font-weight: 400;\">SQL Server Agent - the scheduling service that allows you to run scripts on schedule.<\/li>\n<li style=\"font-weight: 400;\">SQL Server Management Studio - a graphical management console that provides an easy-to-use interface for managing and generating scripting actions, like backups, for your databases.<\/li>\n<\/ul>\n<blockquote><p>The SQL Server Agent is available for all editions, except Express.<\/p><\/blockquote>\n<h3><a name=\"log\"><\/a>How to Create T-log Backups Using SQL Server Tools<\/h3>\n<p>Setting up SQL Server Management Studio to create the scripts and scheduled jobs for your transaction log backup is simple. Follow the steps below.<\/p>\n<p><strong>1.<\/strong> Right-click on the desired database and select the <b>Tasks<\/b> - <b>Back Up<\/b> option. Change the Backup Type to <b>Transaction Log <\/b>and you're ready to go.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24482 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image4-1.png\" alt=\"Select 'Transaction Log' backup type\" width=\"909\" height=\"666\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image4-1.png 909w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image4-1-300x220.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image4-1-768x563.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image4-1-624x457.png 624w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/p>\n<p><strong>2.<\/strong> Then you can simply convert these backup settings to the scheduled job by clicking <strong>Script<\/strong> at the top:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24484 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image6.png\" alt=\"Convert T-Log backup settings to the scheduled job\" width=\"656\" height=\"319\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image6.png 656w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image6-300x146.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image6-624x303.png 624w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/p>\n<p><strong>3.<\/strong> Most of the settings are self-explanatory, so let\u2019s check the <strong>Scheduling<\/strong> tab:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24483 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image5-1.png\" alt=\"Scheduling settings example with T-Logs backup job that will run every hour\" width=\"909\" height=\"665\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image5-1.png 909w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image5-1-300x219.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image5-1-768x562.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image5-1-624x457.png 624w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/p>\n<p>In the depicted example, the T-log backup job created will run every hour. (If configuring full or differential backup runs, you may consider daily or weekly plans.)<\/p>\n<p>You can achieve the same goal using a script. For example, paste the script below as a new step in the <strong>New Job<\/strong> window of SQL Server Agent:<\/p>\n<pre>BACKUP LOG [DB_NAME] TO  DISK = N'path_to_backup_file' WITH NOFORMAT, NOINIT,  NAME = N'JOB_NAME', SKIP, NOREWIND, NOUNLOAD,  STATS = 10\r\nGO\r\n<\/pre>\n<blockquote><p>Remember to replace <em>DB_NAME<\/em> with your database name, replace <em>path_to_backup_file<\/em> with your backup path, and type the proper name for <em>JOB_NAME<\/em>. The script will append new backups to the end of the specified backup file (<em>NOINIT<\/em> option). If you prefer to store one backup per script, use the <em>INIT<\/em> option instead.<\/p><\/blockquote>\n<p><strong>4.<\/strong> Resulting Step\u2019s settings:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24486 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image8.png\" alt=\"T-log Backup Resulting Step\u2019s settings\" width=\"992\" height=\"683\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image8.png 992w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image8-300x207.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image8-768x529.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image8-624x430.png 624w\" sizes=\"auto, (max-width: 992px) 100vw, 992px\" \/><\/p>\n<p>The syntax for full or differential data copies will be quite similar - just replace <em>LOG<\/em> with <em>DATABASE<\/em> (full backup); if you need to create a differential copy, just add <em>WITH DIFFERENTIAL<\/em> to the script:<\/p>\n<pre>BACKUP DATABASE TestDB  \r\n   TO diff_backups  \r\n   WITH DIFFERENTIAL;  \r\nGO \r\n<\/pre>\n<h3>Backup Automation with MSP360<\/h3>\n<p>MSP360 Backup allows you to <a href=\"https:\/\/www.msp360.com\/backup\/\">back up Microsoft SQL Server<\/a> to the cloud storage location of your choice and automate full, differential, and T-log backups.<\/p>\n<p><em>Note: Microsoft SQL Server 2008-2017 and SQL Server Express are supported in the <a href=\"https:\/\/www.msp360.com\/backup\/\">MSP360 Backup for MS SQL Server<\/a> and <a href=\"https:\/\/www.msp360.com\/backup\/\">MSP360 Backup Ultimate<\/a> editions.<\/em><\/p>\n<p>Backing up your databases with MSP360 is easy by following these steps:<\/p>\n<div class=\"steps\">\n<p><var>1<\/var>Start the backup wizard by clicking <strong>MS SQL Server<\/strong> on the <strong>Home<\/strong> tab:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-28360 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/ribbon-backup-ms-sql-server-button.png\" alt=\"Starting the Backup Wizard for MS SQL Server \" width=\"795\" height=\"114\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/ribbon-backup-ms-sql-server-button.png 795w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/ribbon-backup-ms-sql-server-button-300x43.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/ribbon-backup-ms-sql-server-button-768x110.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/ribbon-backup-ms-sql-server-button-624x89.png 624w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p><var>2<\/var>Next, select whether you want to perform Local, Cloud, or Hybrid backups and select your backup storage location on the following wizard step. For this example, we\u2019ll perform a cloud backup to an Amazon S3 account.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24488 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image2-1.png\" alt=\"Selecting backup storage in MSP360 Backup for MS SQL Server\" width=\"643\" height=\"500\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image2-1.png 643w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image2-1-300x233.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image2-1-624x485.png 624w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><var>3<\/var>Connect to the preferred SQL Server instance. MSP360 Backup will automatically check whether the account has the necessary permissions to perform database backups.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24487 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image1-1.png\" alt=\"Selecting MS SQL Server instance in MSP360 Backup for MS SQL Server\" width=\"640\" height=\"500\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image1-1.png 640w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image1-1-300x234.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image1-1-624x488.png 624w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><var>4<\/var>Select databases you want to protect (all databases, all user databases, or a custom selection of databases).<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24481 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image3-1.png\" alt=\"Selecting databases to back up\" width=\"644\" height=\"503\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image3-1.png 644w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image3-1-300x234.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/image3-1-624x487.png 624w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<p><var>5<\/var>Specify the compression, encryption and retention policy settings in the next two steps. Then schedule the SQL Server backup process.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-28945 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/SQL-Server-Backup-scheduling.png\" alt=\"Choose schedule for your SQL Server backup\" width=\"644\" height=\"502\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/SQL-Server-Backup-scheduling.png 644w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/SQL-Server-Backup-scheduling-300x234.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/SQL-Server-Backup-scheduling-624x486.png 624w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><br \/>\nIn <strong>Recurring<\/strong> schedules (where you can use either <strong>predefined templates<\/strong> or set an <strong>advanced schedule<\/strong>) you will be able to configure how often to perform transaction log backup (as well as full and <a href=\"https:\/\/www.msp360.com\/resources\/blog\/differential-backup-explained\/\">differential backups<\/a>).<\/p>\n<p><var>6<\/var>Let\u2019s schedule backups to be performed hourly using <strong>Simple Recurring Schedule<\/strong> (to do this you will need to have selected <strong>Recurring (predefined templates)<\/strong> in the previous step):<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-28947 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Configuring_T-Log_Backup_Simple_Recurring_Schedule.png\" alt=\"Configuring transaction log backup to run every hour\" width=\"643\" height=\"503\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Configuring_T-Log_Backup_Simple_Recurring_Schedule.png 643w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Configuring_T-Log_Backup_Simple_Recurring_Schedule-300x235.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2018\/09\/Configuring_T-Log_Backup_Simple_Recurring_Schedule-624x488.png 624w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><var>7<\/var>Specify the remaining settings in the next steps of the wizard, review your backup plan configuration and click Finish to create it.<\/p>\n<\/div>\n<h3>Extend your knowledge around backup solutions and best practices<\/h3>\n<p><span style=\"font-weight: 400;\">Effective IT management requires robust solutions for system maintenance, cloud integration, and data protection. For Linux users, implementing a <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/guide-to-linux-patching-management\/\"><span style=\"font-weight: 400;\">Linux patching management strategy<\/span><\/a><span style=\"font-weight: 400;\"> ensures optimal performance and security. When working with AWS, understanding how to <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/how-to-find-your-aws-access-key-id-and-secret-access-key\/\"><span style=\"font-weight: 400;\">locate your AWS Access Key ID and Secret Access Key<\/span><\/a><span style=\"font-weight: 400;\"> is crucial for secure cloud operations, while choosing between <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/amazon-ec2-vs-amazon-s3\/\"><span style=\"font-weight: 400;\">Amazon EC2 and S3<\/span><\/a><span style=\"font-weight: 400;\"> depends on your storage and computing needs. For Microsoft environments, <\/span><span style=\"font-weight: 400;\">\u00a0performing <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/sql-server-backup-and-restore\/\"><span style=\"font-weight: 400;\">SQL Server backup and restore<\/span><\/a><span style=\"font-weight: 400;\"> operations are vital for data integrity. Additionally, troubleshooting Windows systems by <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/windows-troubleshooting-checking-and-enabling-recovery-environment\/\"><span style=\"font-weight: 400;\">checking and enabling the recovery environment<\/span><\/a><span style=\"font-weight: 400;\"> can prevent costly downtime. These practices, supported by MSP360\u2019s expert resources, streamline IT operations and enhance system reliability.<\/span><\/p>\n<h2>Final words on SQL server transaction log backup<\/h2>\n<p>When protecting your databases from data loss and looking to manage your recovery time objectives, strongly consider performing regular backups. The schedule and the database recovery model will depend on your business requirements, such as how much data loss your business can tolerate.<\/p>\n<p>If your database runs in full or bulk-logged recovery model, performing T-log backups more frequently reduces possible data loss and prevents storage space overfill by the growing log file. However, the bulk-logged recovery mode cannot provide point-in-time restore if bulk-logged operations have occurred since the most recent log backup.<\/p>\n<p>Microsoft SQL Server allows you to automate backup tasks using the Server Agent, but if you don\u2019t want to create and manage T-SQL scripts and would like to back up your databases to the cloud storage location of your choice, consider using <a href=\"https:\/\/www.msp360.com\/backup\/\">MSP360 Backup for MS SQL Server<\/a>, which provides simpler and more flexible backup. Start your free trial and see how MSP360 can greatly improve your backup experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A transaction log, also called a T-log, is a running list of transactions that change either the data in the database or the structure of the database. Each database modification is a transaction; as changes are made to a database, log records are added to the log file. Transaction log can be used to minimize [&hellip;]<\/p>\n","protected":false},"author":46,"featured_media":44418,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[886,878],"tags":[926],"class_list":["post-33614","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup-and-dr-guides","category-msp-university","tag-sql-server-backup-and-restore"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/33614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=33614"}],"version-history":[{"count":8,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/33614\/revisions"}],"predecessor-version":[{"id":60088,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/33614\/revisions\/60088"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media\/44418"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=33614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=33614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=33614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}