{"id":1023,"date":"2008-08-25T00:23:47","date_gmt":"2008-08-25T00:23:47","guid":{"rendered":"\/blogs\/paul\/post\/Search-Engine-QA-25-Why-isnt-my-log-backup-the-same-size-as-my-log.aspx"},"modified":"2013-01-01T21:06:23","modified_gmt":"2013-01-02T05:06:23","slug":"search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/","title":{"rendered":"Search Engine Q&#038;A #25: Why isn&#8217;t my log backup the same size as my log?"},"content":{"rendered":"<p><FONT face=Verdana size=2><br \/>\n<P>I woke up this morning and someone had replaced my wife with someone who likes to blog :-).&nbsp;Kimberly&#8217;s turned over a new leaf and is going to blog much more often &#8211; in fact she&#8217;s blogged 4 times today already. Check out her blog <a href=\"http:\/\/www.sqlskills.com\/blogs\/kimberly\/\">here<\/a>.<\/P><br \/>\n<P>Continuing on the transaction log theme of the last few Search Engine Q&amp;A posts, this one addresses a question I&#8217;ve heard a few times, most recently on an MVP discussion group. Let me paraphrase:<\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><br \/>\n<P>If I have a transaction that inserts a huge amount of data, the transaction log grows to 50-GB. I then rollback the transaction. When I take the next log backup, it&#8217;s way smaller than 50-GB. What&#8217;s going on?<\/P><\/BLOCKQUOTE><br \/>\n<P dir=ltr>Let&#8217;s see if we can repro the scenario. I&#8217;ve created a database with a 500-MB data file and a 1-MB log file, with 100-MB and 1-MB auto-growth intervals. I want the log to be as small as possible and to grow in small chunks so I can see just how much it *has* to grow by, rather than having a large growth size. Then I set the recovery mode to full and took a database backup to make sure the log won&#8217;t truncate until it&#8217;s backed up.<\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><FONT color=#0000ff size=5><br \/>\n<P><FONT face=\"Courier New\" size=2>CREATE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>DATABASE<\/FONT><FONT color=#000000> LogSizeTest <\/FONT><FONT color=#0000ff>ON<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#808080>(<\/FONT><FONT color=#0000ff>NAME<\/FONT> <FONT color=#808080>=<\/FONT> N<FONT color=#ff0000>&#8216;LogSizeTest&#8217;<\/FONT><FONT color=#808080>,<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>FILENAME<\/FONT> <FONT color=#808080>=<\/FONT> N<FONT color=#ff0000>&#8216;C:\\SQLskills\\LogSizeTest.mdf&#8217;<\/FONT><FONT color=#808080>,<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>SIZE<\/FONT> <FONT color=#808080>=<\/FONT> 512MB<FONT color=#808080>,<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>FILEGROWTH<\/FONT> <FONT color=#808080>=<\/FONT> 100MB<FONT color=#808080>)<BR><\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#ff00ff>LOG<\/FONT> <FONT color=#0000ff>ON<\/FONT>&nbsp;<BR>&nbsp;&nbsp;&nbsp;<\/FONT><FONT face=\"Courier New\"><FONT color=#808080>(<\/FONT><FONT color=#0000ff>NAME<\/FONT> <FONT color=#808080>=<\/FONT> N<FONT color=#ff0000>&#8216;LogSizeTest_log&#8217;<\/FONT><FONT color=#808080>,<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>FILENAME<\/FONT> <FONT color=#808080>=<\/FONT> N<FONT color=#ff0000>&#8216;C:\\SQLskills\\LogSizeTest_log.ldf&#8217;<\/FONT><FONT color=#808080>,<BR><\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;SIZE<\/FONT> <FONT color=#808080>=<\/FONT> 1MB<FONT color=#808080>,<BR>&nbsp;&nbsp;&nbsp;<\/FONT><FONT color=#0000ff>FILEGROWTH<\/FONT> <FONT color=#808080>=<\/FONT> 1MB<FONT color=#808080>);<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<\/FONT><\/P><FONT color=#0000ff><br \/>\n<P><FONT face=\"Courier New\">ALTER<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>DATABASE<\/FONT><FONT color=#000000> LogSizeTest <\/FONT><FONT color=#0000ff>SET<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>RECOVERY<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>FULL<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<\/FONT><\/P><FONT color=#0000ff><br \/>\n<P><FONT face=\"Courier New\">BACKUP<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>DATABASE<\/FONT><FONT color=#000000> LogSizeTest <\/FONT><FONT color=#0000ff>TO<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>DISK<\/FONT><FONT color=#000000> <\/FONT><FONT color=#808080>=<\/FONT><FONT color=#000000> <\/FONT><FONT color=#ff0000>&#8216;C:\\SQLskills\\LogSizeTest.bak&#8217;<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT face=\"Courier New\" size=2>GO<\/FONT><\/P><\/BLOCKQUOTE><br \/>\n<P dir=ltr><FONT face=\"Courier New\" size=2><FONT face=Verdana>Let&#8217;s check the size of the log:<\/FONT><\/FONT><\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><FONT face=\"Courier New\" size=2><FONT face=Verdana><FONT color=#0000ff size=5><br \/>\n<P><FONT face=\"Courier New\" size=2>DBCC<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> SQLPERF <\/FONT><FONT color=#808080>(<\/FONT><FONT color=#000000>LOGSPACE<\/FONT><FONT color=#808080>);<BR><\/FONT><\/FONT><FONT face=\"Courier New\" size=2>GO<\/FONT><\/P><br \/>\n<P><FONT face=\"Courier New\" size=2>Database Name&nbsp; Log Size (MB) Log Space Used (%) Status<BR>&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211;<BR>LogSizeTest&nbsp;&nbsp;&nbsp; 0.9921875&nbsp;&nbsp;&nbsp;&nbsp; 36.66339&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<BR><\/P><\/FONT><\/FONT><\/FONT><\/BLOCKQUOTE><br \/>\n<P dir=ltr><FONT face=\"Courier New\" size=2><FONT face=Verdana>This gives back info for all databases, I&#8217;ve trimmed down the output just for the <FONT face=\"Courier New\">LogSizeTest<\/FONT> database.<\/FONT><\/FONT><\/P><br \/>\n<P dir=ltr><FONT face=\"Courier New\" size=2><FONT face=Verdana>Now I&#8217;m going to create a table, start an explicit transaction and add about 500-MB of info to the table.<\/FONT><\/FONT><\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><FONT face=\"Courier New\" size=2><FONT face=Verdana><FONT color=#0000ff size=5><br \/>\n<P><FONT face=\"Courier New\" size=2>USE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> LogSizeTest<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<BR><\/FONT><FONT color=#0000ff><FONT color=#0000ff size=5><FONT face=\"Courier New\" size=2>SET<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>NOCOUNT<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>ON<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT size=5><FONT face=\"Courier New\" color=#000000 size=2>GO<BR><\/FONT><\/FONT><FONT face=\"Courier New\">CREATE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>TABLE<\/FONT><FONT color=#000000> Test <\/FONT><FONT color=#808080>(<\/FONT><\/FONT><FONT face=\"Courier New\">c1 <\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>INT<\/FONT> <FONT color=#0000ff>IDENTITY<\/FONT><FONT color=#808080>, <\/FONT><\/FONT><FONT face=\"Courier New\">C2 <\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>CHAR<\/FONT> <FONT color=#808080>(<\/FONT>8000<FONT color=#808080>)<\/FONT> <FONT color=#0000ff>DEFAULT<\/FONT> <FONT color=#808080>(<\/FONT><FONT color=#ff00ff>REPLICATE<\/FONT> <FONT color=#808080>(<\/FONT><FONT color=#ff0000>&#8216;a&#8217;<\/FONT><FONT color=#808080>,<\/FONT> 8000<FONT color=#808080>)));<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<\/P><\/FONT><FONT color=#0000ff><br \/>\n<P><FONT face=\"Courier New\">BEGIN<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>TRAN<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<\/P><\/FONT><FONT color=#0000ff><br \/>\n<P><FONT face=\"Courier New\">DECLARE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> @count <\/FONT><FONT color=#0000ff>INT<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT color=#0000ff><FONT face=\"Courier New\">SELECT<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> @count <\/FONT><FONT color=#808080>=<\/FONT><FONT color=#000000> 0<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT color=#0000ff><FONT face=\"Courier New\">WHILE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#808080>(<\/FONT><FONT color=#000000>@count <\/FONT><FONT color=#808080>&lt;<\/FONT><FONT color=#000000> 64000<\/FONT><FONT color=#808080>)<BR><\/FONT><\/FONT><FONT face=\"Courier New\" color=#0000ff>BEGIN<BR>&nbsp;&nbsp;&nbsp;<\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>INSERT<\/FONT> <FONT color=#0000ff>INTO<\/FONT> Test <FONT color=#0000ff>DEFAULT<\/FONT> <FONT color=#0000ff>VALUES<\/FONT><FONT color=#808080>;<BR>&nbsp;&nbsp;&nbsp;<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#0000ff>SELECT<\/FONT> @count <FONT color=#808080>=<\/FONT> @count <FONT color=#808080>+<\/FONT> 1<FONT color=#808080>;<BR><\/FONT><\/FONT><FONT color=#0000ff><FONT face=\"Courier New\">END<\/FONT><\/FONT><FONT color=#808080><FONT face=\"Courier New\">;<BR><\/FONT><\/FONT><FONT face=\"Courier New\" size=2>GO<\/P><\/FONT><\/FONT><\/FONT><\/BLOCKQUOTE><br \/>\n<P dir=ltr><FONT face=\"Courier New\" size=2><FONT face=Verdana>Checking the log file size again gives:<\/FONT><\/FONT><\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><FONT face=\"Courier New\" size=2><FONT color=#0000ff size=5><br \/>\n<P><FONT size=2>DBCC<\/FONT><\/FONT><FONT color=#000000> SQLPERF <\/FONT><FONT color=#808080>(<\/FONT><FONT color=#000000>LOGSPACE<\/FONT><FONT color=#808080>);<BR><\/FONT><FONT size=5><FONT size=2>GO<\/FONT><\/P><br \/>\n<P dir=ltr><\/FONT>Database Name&nbsp; Log Size (MB) Log Space Used (%) Status<BR>&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211;<BR>LogSizeTest&nbsp;&nbsp;&nbsp; 703.9922&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 99.98737&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<\/FONT><\/P><\/BLOCKQUOTE><br \/>\n<P dir=ltr><FONT face=\"Courier New\" size=2><FONT face=Verdana>The log size has grown to about 700-MB, way more than the size of the data I was inserting, and it&#8217;s completely full. Now let&#8217;s rollback the transaction and check the log size again.<\/FONT><\/FONT><\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><FONT face=\"Courier New\" size=2><FONT face=Verdana><FONT color=#0000ff size=5><br \/>\n<P><FONT face=\"Courier New\" size=2>ROLLBACK<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>TRAN<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#808080>;<BR><\/FONT>GO<\/FONT><\/P><FONT color=#0000ff><br \/>\n<P><FONT face=\"Courier New\">DBCC<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> SQLPERF <\/FONT><FONT color=#808080>(<\/FONT><FONT color=#000000>LOGSPACE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#808080>);<BR><\/FONT><FONT size=2>GO<\/FONT><\/FONT><\/P><br \/>\n<P><FONT size=2><FONT face=\"Courier New\">Database Name&nbsp; Log Size (MB) Log Space Used (%) Status<BR>&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211;<BR>LogSizeTest&nbsp;&nbsp;&nbsp; 703.9922&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 85.21268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<\/FONT><\/P><\/FONT><\/FONT><\/FONT><\/BLOCKQUOTE><br \/>\n<P dir=ltr><FONT face=\"Courier New\" size=2><FONT face=Verdana>The size of the log file is the same, but the percentage used has actually gone down! How can that happen? Let&#8217;s take a backup and checkout it&#8217;s size:<\/FONT><\/FONT><\/P><br \/>\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\"><FONT face=\"Courier New\" size=2><FONT face=Verdana><FONT color=#0000ff size=5><br \/>\n<P><FONT face=\"Courier New\" size=2>BACKUP<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#ff00ff>LOG<\/FONT><FONT color=#000000> LogSizeTest <\/FONT><FONT color=#0000ff>TO<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>DISK<\/FONT><FONT color=#000000> <\/FONT><FONT color=#808080>=<\/FONT><FONT color=#000000> <\/FONT><FONT color=#ff0000>&#8216;C:\\SQLskills\\LogSizeTest_log.bck&#8217;<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<BR><\/FONT><FONT color=#0000ff><FONT face=\"Courier New\">RESTORE<\/FONT><\/FONT><FONT face=\"Courier New\"><FONT color=#000000> <\/FONT><FONT color=#0000ff>HEADERONLY<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>FROM<\/FONT><FONT color=#000000> <\/FONT><FONT color=#0000ff>DISK<\/FONT><FONT color=#000000> <\/FONT><FONT color=#808080>=<\/FONT><FONT color=#000000> <\/FONT><FONT color=#ff0000>&#8216;C:\\SQLskills\\LogSizeTest_log.bck&#8217;<\/FONT><FONT color=#808080>;<BR><\/FONT><\/FONT><FONT face=\"Courier New\">GO<\/FONT><\/FONT><\/FONT><\/P><\/BLOCKQUOTE><br \/>\n<P>The <FONT face=\"Courier New\">BackupSize<\/FONT> in the output from the <FONT face=\"Courier New\">RESTORE HEADERONLY<\/FONT> is 631454208, which is 602.2-MB. Taking the numbers from the <FONT face=\"Courier New\">DBCC SQLPER<\/FONT>F output above, 85.21268% of 703.9922-MB is 599.89-MB&nbsp;&#8211; so the backup is roughly the same size as the used transaction log. That&#8217;s what I&#8217;d expect, but why is it smaller than the total size of the transaction log?<\/P><br \/>\n<P>So what&#8217;s going on? Why did the transaction log need to grow so much larger than it needed to, and why did the percentage used actually *drop* after the transaction rolled back?<\/P><br \/>\n<P>The answer is in the way the transaction log works. Whenever a logged operation occurs in a transaction, there is some transaction log space <EM>reserved<\/EM> in case the transaction rolls back. The idea is that there&#8217;s always enough space available in the transaction log for a transaction to roll back, without having to grow the transaction log and potentially have that fail. If a transaction could not roll back successfully because the log didn&#8217;t have enough space, the database would become transactionally inconsistent, would be taken offline and the state changed to <FONT face=\"Courier New\">SUSPECT<\/FONT>.<\/P><br \/>\n<P>The behavior we saw was the Storage Engine reserving transaction log space for a potential roll back. When the roll back occured, the transaction log records necessary to undo the effects of the transaction (called <EM>compensation log records<\/EM>) are created and written to the log. The issue is that they usually don&#8217;t take up as much space as the Storage Engine reserved, as it tends to be very conservative in its estimates of how much log space to reserve, to avoid the potential for <FONT face=\"Courier New\">SUSPECT<\/FONT> databases. This explains the difference between the various sizes and percentages we saw above.<\/P><br \/>\n<P>The Storage Engine code to do the reservations&nbsp;is quite interesting &#8211; I remember fixing a couple of bugs in it during SQL Server 2000 development in 1999 while I was getting to know the internals of the logging and recovery system before tackling some of the (since removed) log-reading code in DBCC CHECKDB in SQL Server 2000.<\/P><br \/>\n<P>Anyway, there you have it. Log space reservation is the answer, and is also one of the reasons why it can be tricky to estimate how large a transaction log should be when a database is created.<\/P><\/FONT><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I woke up this morning and someone had replaced my wife with someone who likes to blog :-).&nbsp;Kimberly&#8217;s turned over a new leaf and is going to blog much more often &#8211; in fact she&#8217;s blogged 4 times today already. Check out her blog here. Continuing on the transaction log theme of the last few [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,31,38,78,98],"tags":[],"class_list":["post-1023","post","type-post","status-publish","format-standard","hentry","category-backuprestore","category-database-maintenance","category-example-scripts","category-search-engine-q-and-a","category-transaction-log"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Search Engine Q&amp;A #25: Why isn&#039;t my log backup the same size as my log? - Paul S. Randal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Search Engine Q&amp;A #25: Why isn&#039;t my log backup the same size as my log? - Paul S. Randal\" \/>\n<meta property=\"og:description\" content=\"I woke up this morning and someone had replaced my wife with someone who likes to blog :-).&nbsp;Kimberly&#8217;s turned over a new leaf and is going to blog much more often &#8211; in fact she&#8217;s blogged 4 times today already. Check out her blog here. Continuing on the transaction log theme of the last few [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/\" \/>\n<meta property=\"og:site_name\" content=\"Paul S. Randal\" \/>\n<meta property=\"article:published_time\" content=\"2008-08-25T00:23:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-01-02T05:06:23+00:00\" \/>\n<meta name=\"author\" content=\"Paul Randal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Randal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/\",\"name\":\"Search Engine Q&A #25: Why isn't my log backup the same size as my log? - Paul S. Randal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\"},\"datePublished\":\"2008-08-25T00:23:47+00:00\",\"dateModified\":\"2013-01-02T05:06:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search Engine Q&#038;A #25: Why isn&#8217;t my log backup the same size as my log?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/\",\"name\":\"Paul S. Randal\",\"description\":\"In Recovery...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce\",\"name\":\"Paul Randal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g\",\"caption\":\"Paul Randal\"},\"sameAs\":[\"http:\/\/3.209.169.194\/blogs\/paul\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Search Engine Q&A #25: Why isn't my log backup the same size as my log? - Paul S. Randal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/","og_locale":"en_US","og_type":"article","og_title":"Search Engine Q&A #25: Why isn't my log backup the same size as my log? - Paul S. Randal","og_description":"I woke up this morning and someone had replaced my wife with someone who likes to blog :-).&nbsp;Kimberly&#8217;s turned over a new leaf and is going to blog much more often &#8211; in fact she&#8217;s blogged 4 times today already. Check out her blog here. Continuing on the transaction log theme of the last few [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/","og_site_name":"Paul S. Randal","article_published_time":"2008-08-25T00:23:47+00:00","article_modified_time":"2013-01-02T05:06:23+00:00","author":"Paul Randal","twitter_misc":{"Written by":"Paul Randal","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/","name":"Search Engine Q&A #25: Why isn't my log backup the same size as my log? - Paul S. Randal","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website"},"datePublished":"2008-08-25T00:23:47+00:00","dateModified":"2013-01-02T05:06:23+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/search-engine-qa-25-why-isnt-my-log-backup-the-same-size-as-my-log\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/paul\/"},{"@type":"ListItem","position":2,"name":"Search Engine Q&#038;A #25: Why isn&#8217;t my log backup the same size as my log?"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/paul\/","name":"Paul S. Randal","description":"In Recovery...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/paul\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/ffcec826c18782e1e0adf173826a7fce","name":"Paul Randal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/paul\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b6a266bba2f088f2551ef529293001bd73bf026bc1908b9866728c062beeeb6?s=96&d=mm&r=g","caption":"Paul Randal"},"sameAs":["http:\/\/3.209.169.194\/blogs\/paul"],"url":"https:\/\/www.sqlskills.com\/blogs\/paul\/author\/paul\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/posts\/1023\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/categories?post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/paul\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}