Transaction Log Backups – Disk Space Usage Comparison

backupdisk-spaceNetworksql servertransaction-log

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?

Best Answer

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.