HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlModerate

Does taking transaction log backups every 15 minutes consume more disk space than log backups every 6 hours?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
spacebackupsdiskloghoursthanmoreeverytransactiondoes

Problem

In our environment the network storage is low on space. At the same time I would like to make sure that we take transaction log backups every 15 minutes instead of current every 6 hours. My question is will changing the log backup interval from 6 hours to every 15 minutes consume more disk space?

Solution

No, but it may make your transaction log smaller - so your SQL Server will use less space.

To keep things simple, say you generate 1MB of transaction log activity every minute. After 15 minutes, you've generated 15MB of log activity - but that also means that your transaction log will need to be at least 15MB large (assuming that you're in full recovery model.)

If you back up that log file right away, and you don't have open transactions (or any of a host of other things that will cause SQL Server to keep the log file in use), you'll be able to clear out portions of it, keeping your log file small.

However, if you wait 6 hours, that's 360MB of logged activity - your transaction log file (LDF) would be larger.

I'm using small, easy numbers here - you'd want to change them for your own environment to see the impact on your own transaction log space.

Context

StackExchange Database Administrators Q#190782, answer score: 13

Revisions (0)

No revisions yet.